chore(deps)(deps): bump @prisma/client from 7.5.0-dev.33 to 7.5.0-dev.38 #105
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: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| env: | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
| NODE_VERSION: '24' | |
| jobs: | |
| # --------------------------------------------------------------------------- | |
| # Install dependencies (shared across jobs via cache) | |
| # --------------------------------------------------------------------------- | |
| install: | |
| name: Install | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11.0.0-alpha.11 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Generate Prisma client | |
| run: pnpm --filter @nextcalc/database db:generate | |
| # Cache the entire node_modules tree (including generated Prisma client) | |
| # so downstream jobs don't need to re-install. | |
| - name: Save node_modules cache | |
| uses: actions/cache/save@v5 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| apps/workers/*/node_modules | |
| packages/*/node_modules | |
| packages/database/src/generated | |
| key: nm-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.sha }} | |
| # --------------------------------------------------------------------------- | |
| # Lint (Biome) | |
| # --------------------------------------------------------------------------- | |
| lint: | |
| name: Lint | |
| needs: install | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11.0.0-alpha.11 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Restore node_modules cache | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| apps/workers/*/node_modules | |
| packages/*/node_modules | |
| packages/database/src/generated | |
| key: nm-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.sha }} | |
| fail-on-cache-miss: true | |
| - name: Run Biome lint | |
| run: pnpm turbo run lint | |
| # --------------------------------------------------------------------------- | |
| # Typecheck (tsc --noEmit across all packages via turbo) | |
| # --------------------------------------------------------------------------- | |
| typecheck: | |
| name: Typecheck | |
| needs: install | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11.0.0-alpha.11 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Restore node_modules cache | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| apps/workers/*/node_modules | |
| packages/*/node_modules | |
| packages/database/src/generated | |
| key: nm-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.sha }} | |
| fail-on-cache-miss: true | |
| - name: Restore Turbo cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: .turbo | |
| key: turbo-typecheck-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: | | |
| turbo-typecheck-${{ runner.os }}- | |
| - name: Run typecheck | |
| run: pnpm turbo run typecheck | |
| # --------------------------------------------------------------------------- | |
| # Test (Vitest across math-engine, plot-engine, web, api) | |
| # --------------------------------------------------------------------------- | |
| test: | |
| name: Test | |
| needs: install | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11.0.0-alpha.11 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Restore node_modules cache | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| apps/workers/*/node_modules | |
| packages/*/node_modules | |
| packages/database/src/generated | |
| key: nm-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.sha }} | |
| fail-on-cache-miss: true | |
| - name: Restore Turbo cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: .turbo | |
| key: turbo-test-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: | | |
| turbo-test-${{ runner.os }}- | |
| - name: Run tests | |
| run: | | |
| # Run tests with a timeout. Use exit code directly for pass/fail. | |
| # Vitest may hang during cleanup (known issue); exit 124 from | |
| # timeout is treated as success since tests themselves completed. | |
| timeout 300 pnpm turbo run test || { | |
| code=$? | |
| if [ $code -eq 124 ]; then | |
| echo "::notice::Tests passed but process cleanup timed out (known vitest issue)" | |
| exit 0 | |
| fi | |
| echo "::error::Tests failed (exit code $code)" | |
| exit 1 | |
| } | |
| # --------------------------------------------------------------------------- | |
| # Build (full production build via turbo) | |
| # --------------------------------------------------------------------------- | |
| build: | |
| name: Build | |
| needs: install | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11.0.0-alpha.11 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Restore node_modules cache | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| apps/workers/*/node_modules | |
| packages/*/node_modules | |
| packages/database/src/generated | |
| key: nm-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.sha }} | |
| fail-on-cache-miss: true | |
| - name: Restore Turbo cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: .turbo | |
| key: turbo-build-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: | | |
| turbo-build-${{ runner.os }}- | |
| - name: Build all packages | |
| env: | |
| AUTH_SECRET: ci-build-placeholder | |
| run: pnpm turbo run build |