Commit bc78cbd
ci: Lighthouse CI budgets on PRs (closes #13)
A public single-page showcase site with no perf / a11y / SEO checks — oversized
images, broken meta/OG tags, contrast issues, or render-blocking assets could
ship silently.
- lighthouse.yml: on every PR, build the site and run Lighthouse CI over the
static public/ (Hugo built with baseURL "/" so the root-relative, fully
self-contained output serves locally). Reports stored as a GitHub artifact —
no third-party upload, in keeping with the site's zero-third-party ethos.
- lighthouserc.json: category assertions for performance (0.90), accessibility
(0.95), SEO (0.95), best-practices (0.95) — set to "warn" to start so the
first runs record a baseline; ratchet to hard "error" floors once known.
Verified locally: production build is root-relative and self-contained
(LHCI-servable); prettier/JSON/YAML/zizmor clean. The Lighthouse job runs on
this PR, so its scores are the recorded baseline.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 0c15f6e commit bc78cbd
2 files changed
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments