v1.8.9 #79
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 | |
| strategy: | |
| matrix: | |
| node-version: [20.19.x, 22.12.x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run ESLint | |
| run: npm run lint | |
| continue-on-error: true | |
| - name: TypeScript type check | |
| run: npx tsc --noEmit | |
| - name: Generate Prisma Client | |
| run: npx prisma generate | |
| - name: Build | |
| run: npm run build | |
| env: | |
| # Dummy env vars for build | |
| DATABASE_URL: postgresql://user:pass@localhost:5432/db | |
| NEXTAUTH_SECRET: test-secret-key-for-ci-build-only | |
| NEXTAUTH_URL: http://localhost:3000 | |
| JWT_SECRET: test-jwt-secret-for-ci-build-only-do-not-use-in-production | |
| CSRF_SECRET: test-csrf-secret-for-ci-build-only-do-not-use-in-production | |
| ENCRYPTION_KEY: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef | |
| RESEND_API_KEY: re_test | |
| FROM_EMAIL: noreply@example.com | |
| NEXT_PUBLIC_APP_URL: http://localhost:3000 | |
| LINKFORTY_BASE_URL: https://go.cheesebox.io | |
| security-audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.19.x | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run npm audit | |
| run: npm audit --audit-level=moderate | |
| continue-on-error: true | |
| - name: Check for outdated dependencies | |
| run: npm outdated | |
| continue-on-error: true |