build(deps): bump the npm-minor-and-patch group across 1 directory with 9 updates #133
Workflow file for this run
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: | |
| # Cancel superseded runs on the same ref so only the latest commit's build matters. | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| # Read-only token is all this build needs (checkout); least-privilege by default. | |
| permissions: | |
| contents: read | |
| jobs: | |
| # Split from Build so a lint or test failure reports in ~1min instead of | |
| # waiting on the full Next production bundle. The npm cache is shared, so the | |
| # duplicated install costs little. | |
| check: | |
| name: Lint & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| # Matches the Dockerfile's node:22-alpine, so CI checks what ships. | |
| node-version: 22 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| # `eslint` with no args lints the whole project under the flat config. | |
| # `--max-warnings=0` keeps the tree at zero warnings now that it is | |
| # clean — a new warning is a failure rather than scrollback noise. | |
| - name: Lint | |
| run: npm run lint -- --max-warnings=0 | |
| # Vitest needs no database: the suite runs against PGlite/in-memory | |
| # fixtures, same as the build's fallback driver. | |
| - name: Test | |
| run: npm test | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| # Matches the Dockerfile's node:22-alpine, so CI builds what ships. | |
| node-version: 22 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| # `next build` runs the TypeScript compiler and produces the production | |
| # bundle. No secrets needed: with DATABASE_URL unset the app falls back to | |
| # the bundled PGlite driver (see lib/db/client.ts:resolveDatabaseConfig). | |
| - name: Build | |
| run: npm run build |