feat: re-aligned revision cycles to clarify cycles #377
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: | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| env: | |
| # Tests/build use an ephemeral SQLite file — no external services needed. | |
| DATABASE_URL: file:./ci.db | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| # Installs every workspace from the single root lockfile. | |
| - run: npm ci | |
| - name: Generate Prisma client | |
| run: npm run prisma:generate | |
| - name: Lint | |
| run: npm run lint | |
| - name: Typecheck | |
| run: npm run check | |
| - name: Build | |
| run: npm run build | |
| - name: Unit tests | |
| run: npm test | |
| - name: E2E tests | |
| run: npm run test:e2e |