Add Lighthouse CI checks#62
Merged
lwwmanning merged 1 commit intomainfrom May 4, 2026
Merged
Conversation
…mment Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Will Manning <will@willmanning.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🔦 Lighthouse audit
Run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Lighthouse CI workflow that runs on every PR and posts a sticky comment with per-URL Performance / Accessibility / Best-Practices / SEO scores, and hard-gates each category at a measured floor.
URLs audited:
/,/blog,/blog/<seed-slug>(newest published post, discovered at config-load time fromsrc/content/blog/*.mdx).Threshold calibration
Ran the suite locally against
bun run starton 2026-05-04 to capture a real baseline://blog/blog/<seed>The WebGL hero on
/doesn't drag perf down under desktop simulation — every category clears 0.9 with comfortable headroom across all three URLs, so a flat 0.9 floor for every category does the job (a per-URL matrix would be dead scaffolding at these numbers). spiraldb's permissive perf floor (0.5) is calibrated for its visualizer-heavy routes; vortex doesn't need that latitude.The intent is "lock in today's quality"; bump thresholds via a separate PR if a category drifts up enough that 0.9 stops catching real regressions, and don't relax a threshold to mask a regression.
Files
.github/workflows/lighthouse.yml— PR-only workflow that builds, runstreosh/lighthouse-ci-action, and posts a sticky🔦 Lighthouse auditcomment. Uses the same SHA-pinned actions and bun +.next/cachecaching asci.yml. Concurrency grouplighthouse-${{ github.workflow }}-${{ github.ref }}.lighthouserc.cjs— JS rather than JSON because the seed slug for/blog/<slug>is discovered at run time fromsrc/content/blog/*.mdxfrontmatter (published: falsefiltered, then sorted bydate). Hardcoding a slug would break Lighthouse the day that post is renamed or unpublished.Audit advisories
Adding
@lhci/cli@^0.15.1as a dev dep introduces two upstream-blocked transitive advisories:tmp <=0.2.3(GHSA-52f5-9888-hmc6, low symbolic-link path traversal indir). Pulled exclusively by@lhci/cli@0.15.1. Dev-only; runs in CI on controlled inputs. Documented inCLAUDE.mdand added to thebun audit --ignorelist in.github/workflows/ci.yml.uuid <14.0.0(GHSA-w5hq-g745-h8pq, already ignored from PR Hard-gate bun audit in CI; pin patched postcss + mdast-util-to-hast #59 via the resend → svix path).@lhci/cliadds a second parent path (@lhci/cli@0.15.1 → uuid@8.3.2) — same GHSA, same--ignore, no new flag needed. TheCLAUDE.mdentry was widened to mention both parents.Removal triggers (both): when
@lhci/cliships a release with patched transitives.Test plan
Lint, build, verify+ newLighthouse auditjob)🔦 Lighthouse auditcomment with the score table; cells render with 🟢 emoji given the baselinetemporary-public-storage)bun audit --ignore=GHSA-w5hq-g745-h8pq --ignore=GHSA-52f5-9888-hmc6exits 0 in the green CI run🤖 Generated with Claude Code