fix(rules): make TEMP-002's date sort a total comparator #1116
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: Lighthouse CI (4G performance budget) | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| lighthouse: | |
| # Runs Lighthouse against the built `dist/` directory using | |
| # the throttled-mobile preset. Verifies LAUNCH.md row (l): the | |
| # site loads in under 2s on a throttled 4G mobile profile. The | |
| # budgets in `lighthouserc.json` enforce the targets: | |
| # | |
| # - First Contentful Paint ≤ 1500 ms | |
| # - Largest Contentful Paint ≤ 2000 ms | |
| # - Time to Interactive ≤ 2000 ms | |
| # - Total Blocking Time ≤ 200 ms | |
| # - Cumulative Layout Shift ≤ 0.1 | |
| # - Performance score ≥ 0.85 | |
| # - Accessibility score ≥ 0.95 | |
| # - Best Practices score ≥ 0.90 | |
| # - SEO score ≥ 0.90 | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node 22 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Install Lighthouse CI | |
| run: npm install -g @lhci/cli@0.14.x | |
| - name: Run Lighthouse CI | |
| run: lhci autorun | |
| - name: Upload Lighthouse reports on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: lighthouseci-reports | |
| path: .lighthouseci/ | |
| retention-days: 7 |