chore: prepare codebase for github #1
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, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| lint-and-typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18" | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Type check | |
| run: yarn workspace @collab/prisma prisma:generate && npx tsc --noEmit | |
| - name: Check for secrets | |
| run: | | |
| if grep -r "supersecretlocal\|refreshsecret" --include="*.ts" --include="*.js" services/ libs/; then | |
| echo "⚠️ Warning: Default secrets found in code. Ensure these are only fallbacks." | |
| fi |