Page performance can degrade silently with each feature addition. Performance budget tests in CI fail when key metrics exceed thresholds, maintaining a fast user experience.
Requirements and context
- Use Lighthouse CI to measure Core Web Vitals on key pages
- Budgets: LCP < 2.5s, FID < 100ms, CLS < 0.1, Bundle size < 200KB gzipped
- Pages to test:
/ (home), /marketplace, /dashboard/lp, /governance
- Fail CI if any budget is exceeded
- Include Lighthouse report as a CI artifact
Suggested execution
git checkout -b test/lighthouse-performance-budget
- Install Lighthouse CI
- Configure budgets and target pages
- Integrate into CI workflow
- Document how to review Lighthouse reports
Example commit message
test: add Lighthouse CI performance budget tests to CI pipeline
Page performance can degrade silently with each feature addition. Performance budget tests in CI fail when key metrics exceed thresholds, maintaining a fast user experience.
Requirements and context
/(home),/marketplace,/dashboard/lp,/governanceSuggested execution
Example commit message
test: add Lighthouse CI performance budget tests to CI pipeline