fix(site): add favicon for public pages #39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" | |
| jobs: | |
| quality: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:16-alpine | |
| env: | |
| POSTGRES_DB: tgo_network | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U postgres -d tgo_network" | |
| --health-interval 5s | |
| --health-timeout 5s | |
| --health-retries 20 | |
| env: | |
| DATABASE_URL: postgres://postgres:postgres@localhost:5432/tgo_network | |
| BETTER_AUTH_SECRET: ci-secret-change-me | |
| BETTER_AUTH_URL: http://localhost:8787 | |
| CORS_ALLOWED_ORIGINS: http://localhost:4321,http://localhost:5173 | |
| INTERNAL_API_TOKEN: ci-internal-api-token | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v5 | |
| with: | |
| version: 10.8.0 | |
| run_install: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22.x | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: env COREPACK_HOME="$GITHUB_WORKSPACE/.corepack" corepack pnpm install --frozen-lockfile | |
| - name: Validate API environment | |
| run: npm run env:check:api -- internal | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Build | |
| run: npm run build | |
| - name: Test | |
| run: npm run test | |
| docker-api: | |
| runs-on: ubuntu-latest | |
| needs: quality | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Build API image | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: apps/api/Dockerfile | |
| push: false | |
| tags: tgo-api:ci | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |