Running in CI
There is no built-in threshold flag yet, but the report object gives you everything to write the gate yourself in a few lines.
A minimal gate
GitHub Actions
if: always() matters. A failing gate is exactly when you want to read the report.
Gate on a category instead of the headline
The overall score is harsh by design, so gating on it can be noisy while a site is being brought up to standard. Gate on the categories you have actually fixed:
Keeping the run fast
- Skip the network-heavy categories on every commit and run them nightly:
{ skip: ["links", "images"] }. The link rules fetch every unique outbound URL once, which dominates the wall clock on a link-dense site. - Cap the crawl.
maxPages: 10on a pull request, the full crawl on a schedule. - Choose the render path deliberately. Local Chromium is faster per page but needs the install step. PageSpeed Insights needs no install but is rate limited, so keep
psiMaxPagessmall. - Audit the preview deployment, not production. Point
AUDIT_URLat the preview URL and you catch problems before they ship.
Tracking the score over time
render(report, "json") gives you the whole object. Commit it, push it to a database, or diff it against the previous run:
A per-rule diff, so a run can report exactly which checks changed since the last one, is roadmap work rather than something the package does for you today.