Add auto-merge documentation page with branch protection bypass guide #568
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: Jest Coverage | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| branches: [main] | |
| paths-ignore: | |
| - "**.md" | |
| - "**.mdx" | |
| - ".github/workflows/**" | |
| - "docs/**" | |
| - "infrastructure/**" | |
| - "public/**" | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| # ci stands for "clean install", used for CICD | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run Jest with coverage | |
| run: npm test -- --coverage --coverageReporters="text" --coverageReporters="lcov" | |
| env: | |
| STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }} | |
| NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }} | |
| SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} | |
| STRIPE_WEBHOOK_SECRET: ${{ secrets.STRIPE_WEBHOOK_SECRET }} | |
| - name: Upload coverage artifact | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: coverage-report | |
| path: coverage/lcov.info |