Merge pull request #10 from WikitTeam/docs/aipolicy #6
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] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| env: | |
| NEXT_TELEMETRY_DISABLED: '1' | |
| DATABASE_URL: postgresql://user:pass@localhost:5432/placeholder | |
| JWT_SECRET: ci-placeholder-secret-at-least-32-characters | |
| SITE_ORIGIN: https://example.invalid | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: npm | |
| - name: Restore Next.js build cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .next/cache | |
| key: nextjs-${{ hashFiles('package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }} | |
| restore-keys: | | |
| nextjs-${{ hashFiles('package-lock.json') }}- | |
| - run: npm ci | |
| - name: Generate Prisma Client | |
| run: npm run prisma:generate | |
| - run: npm run lint | |
| - run: npm run typecheck | |
| - run: npm test | |
| - run: npm run test:ftml | |
| - run: npm run build | |
| - name: knip (informational) | |
| run: npx --yes knip --no-exit-code --reporter compact |