Lighthouse CI (official)
Lighthouse CI is the official tool for automating Lighthouse in continuous integration. It collects reports, stores them per commit, surfaces regressions in pull requests, and compares results against a baseline.Create a configuration file
Add
lighthouserc.json to the root of your repository:lighthouserc.json
numberOfRunscollects multiple reports per URL and uses the median, which reduces noise.assertfails the CI run when scores drop below the specified thresholds.uploadposts a link to the report in pull request comments (requires the LHCI server ortemporary-public-storage).
GitHub Actions example
Thetreosh/lighthouse-ci-action wraps Lighthouse CI for use in GitHub Actions workflows.
.github/workflows/lighthouse.yml
temporaryPublicStorage is enabled.
Saving reports as artifacts
Use--output=json and --output-path to write a report file that can be stored as a CI artifact for later review.
Speeding up CI runs
Use--only-categories to skip audits you do not need. Auditing only performance is significantly faster than a full run.
performance, accessibility, best-practices, seo.
Third-party integrations
Several commercial services run Lighthouse on your behalf, removing the need to manage your own CI infrastructure:- WebPageTest — Runs Lighthouse alongside waterfall and filmstrip analysis. Supports real devices across multiple locations.
- Calibre — Continuous performance monitoring with GitHub pull request reviews, performance budgets, and a developer API.
- DebugBear — Tracks Lighthouse scores and metrics over time with a focus on identifying the cause of each change.
- Treo — Lighthouse as a service with regression testing, custom networks, and GitHub and Slack integrations.