ci: gate the homepage on lighthouse budgets #24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/lighthouse"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds Lighthouse CI as a PR gate, alongside the existing
perf/homepage-loop.mjs.The two do different jobs: the loop asserts exact gzipped byte budgets under
pinned throttling, Lighthouse covers the audits and the score.
distis served byperf/serve-dist.mjs— the loop's static server, extractedso both tools measure the same bytes Caddy sends. Three runs, median asserted.
Budgets in
lighthouserc.json, calibrated locally (score 90–92, FCP 2.2s,LCP 3.1s, TBT 110ms, CLS 0) with headroom for a slower runner:
modern-image-formats,uses-responsive-images,unused-javascriptandrender-blocking-resourcesare warnings — visible, not blocking.Reports upload as an artifact. The job runs on pull requests only, matching e2e.
Also drops a stale comment in
ci.ymlclaimingbuild:ciskips a prerenderstep; prerendering was removed in
6a569e2andbuild:ciis now identical tobuild.72a7569a79c6dc86bafc