chore(deps): bump the dependencies group across 1 directory with 10 updates #506
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: Lint | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| # prisma.config.ts reads DATABASE_URL at load, so `prisma generate` needs it | |
| # even though generation never connects. | |
| env: | |
| DATABASE_URL: postgresql://trustlink:trustlink@localhost:5432/trustlink_test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| # Typed lint rules resolve types through @prisma/client. Without the | |
| # generated client every `prisma.x.update()` is an unresolved type and | |
| # the no-unsafe-* rules fire in their hundreds — 421 errors on this repo. | |
| - name: Generate Prisma client | |
| run: npx prisma generate | |
| - name: Run ESLint | |
| run: npm run lint:check | |
| env: | |
| ESLINT_USE_FLAT_CONFIG: 'true' | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| env: | |
| DATABASE_URL: postgresql://trustlink:trustlink@localhost:5432/trustlink_test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Generate Prisma client | |
| run: npx prisma generate | |
| - name: Run typecheck | |
| run: npm run typecheck |