treosh/lighthouse-ci-action assertion failed (budget exceeded)
lighthouse-ci-action fails when configured assertions (performance score, resource budgets) are not met. This is a quality gate firing, not an infrastructure error.
What this error means
The Lighthouse step fails with "Assertion failed" or a budget exceeded message and a non-zero exit.
github-actions
Assertion failed: "categories:performance" failed: expected >=0.9 but got 0.72
1 result(s) did not meet assertions.Common causes
Real regression
The page regressed below the configured score or budget threshold.
Thresholds too strict
Assertions are tighter than the app realistically meets in CI.
How to fix it
Fix the regression or tune the assertions
- Inspect the Lighthouse report to find the failing category/budget.
- Fix the regression, or adjust the assertion config to a realistic threshold.
- Re-run; assertions now pass.
.github/workflows/lighthouse.yml
- uses: treosh/lighthouse-ci-action@v12
with:
configPath: ./lighthouserc.json
uploadArtifacts: trueHow to prevent it
- Set assertion thresholds to values CI can consistently meet.
- Treat budget failures as actionable performance regressions.
Related guides
mikepenz/action-junit-report "No test report files were found"Fix mikepenz/action-junit-report finding no test results because the report path glob did not match.
cypress-io/github-action "Cypress could not verify that this server is running"/binary verify failedFix cypress-io/github-action failing to verify the Cypress binary, often a transient download/cache issue.
reviewdog reports no findings but the step exits 1Fix reviewdog failing the job with exit 1 despite reporting no findings, caused by reporter/level/fail-level…