chore(deps): bump the npm-rest group across 1 directory with 16 updates #679
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
| # ═══════════════════════════════════════════════════════════════════════════════ | |
| # Lighthouse CI — Performance & Accessibility Gate (#621) | |
| # ═══════════════════════════════════════════════════════════════════════════════ | |
| # Runs Lighthouse CI (mobile budget) on PRs that touch frontend code. | |
| # Fails if scores drop below thresholds defined in lighthouserc.mobile.js: | |
| # Performance ≥ 85, Accessibility ≥ 95, Best Practices ≥ 90, CLS < 0.1 | |
| # | |
| # Results uploaded as artifacts for investigation. | |
| # ═══════════════════════════════════════════════════════════════════════════════ | |
| name: Lighthouse CI | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "frontend/**" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lighthouse: | |
| name: Lighthouse (Mobile) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup Node | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| env: | |
| NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL || 'http://localhost:54321' }} | |
| NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY || 'placeholder' }} | |
| - name: Run Lighthouse CI | |
| uses: treosh/lighthouse-ci-action@3e7e23fb74242897f95c0ba9cabad3d0227b9b18 # v12 | |
| with: | |
| configPath: frontend/lighthouserc.mobile.js | |
| uploadArtifacts: true | |
| temporaryPublicStorage: true | |
| env: | |
| NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL || 'http://localhost:54321' }} | |
| NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY || 'placeholder' }} | |
| - name: Upload reports | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: lighthouse-reports | |
| path: frontend/lighthouse-reports/ | |
| retention-days: 14 |