Commit b210c9a
ci: add Lighthouse CI with performance/a11y/SEO budgets
Lighthouse CI runs on every PR against main. Budgets (category-level
scores, error-blocking unless noted):
Performance: >= 0.80 (baseline 0.89, desktop preset)
Accessibility: >= 0.85 (baseline 0.89, color-contrast/labels flagged)
Best Practices:>= 0.90 (baseline 1.00)
SEO: >= 0.95 (baseline 1.00)
Web Vitals as warnings (monitoring only, not blocking):
LCP <= 2500ms, TBT <= 300ms, CLS <= 0.1
Setup:
- @lhci/cli, http-server, wait-on as devDependencies
- lighthouserc.json at repo root with desktop preset
- .github/workflows/lighthouse.yml: build → serve → lhci autorun
- Upload to temporary-public-storage (no LHCI server required)
- .lighthouseci/ gitignored
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8947f7b commit b210c9a
5 files changed
Lines changed: 4427 additions & 143 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments