Repository navigation
u #5
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] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| env: | |
| NEXT_TELEMETRY_DISABLED: 1 | |
| jobs: | |
| check: | |
| name: Typecheck, lint, test & build | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| cache: true | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Generate route types | |
| run: pnpm next typegen | |
| - name: Typecheck | |
| run: pnpm typecheck | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Test | |
| run: pnpm test --passWithNoTests | |
| - name: Restore Next.js build cache | |
| uses: actions/cache@v6 | |
| with: | |
| path: .next/cache | |
| key: nextjs-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('src/**', 'public/**', 'next.config.ts') }} | |
| restore-keys: | | |
| nextjs-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}- | |
| - name: Build | |
| run: pnpm build | |
| compose: | |
| name: Validate docker-compose.yml | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: docker compose config | |
| run: | | |
| DOMAIN=ci.example.com docker compose -f docker-compose.yml config --quiet | |
| cp docker-compose.override.example.yml docker-compose.override.yml | |
| DOMAIN=ci.example.com docker compose config --quiet |