Skip to content

Add Lighthouse CI workflow to audit the page (closes #8) - #11

Merged
glebfox merged 2 commits into
masterfrom
ci/lighthouse-audit
Jun 18, 2026
Merged

Add Lighthouse CI workflow to audit the page (closes #8)#11
glebfox merged 2 commits into
masterfrom
ci/lighthouse-audit

Conversation

@glebfox

@glebfox glebfox commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a GitHub Actions workflow that audits the page with Lighthouse CI on every push to master and on PRs targeting it (closes #8). The page is static and dependency-free, so scores should stay near-perfect — any drop is a clear regression signal.

What it does

  • Workflow (.github/workflows/lighthouse.yml): runs treosh/lighthouse-ci-action@v12 against the repo root served as a static site (no deploy wait). Least-privilege permissions: contents: read, concurrency cancels superseded runs, reports uploaded as workflow artifacts.
  • Budgets (lighthouserc.json): hybrid gate — accessibility / SEO / best-practices hard-fail below 1.0; performance is warn-only (timing on shared CI runners fluctuates and would otherwise cause false failures).

Notes

  • lighthouserc.json forces prefers-reduced-motion via chromeFlags. The page's entrance animation starts content at opacity: 0, which never advances in headless Lighthouse and yields NO_FCP; reduced motion makes content statically visible so the audit is deterministic. The gated categories are motion-independent.
  • Verified locally through lhci (collect + assert): 3/3 runs at performance / accessibility / best-practices / SEO = 1.0, assert passes (exit 0).

🤖 Generated with Claude Code

glebfox and others added 2 commits June 18, 2026 21:28
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@glebfox
glebfox merged commit 9d63fc7 into master Jun 18, 2026
1 check passed
@glebfox
glebfox deleted the ci/lighthouse-audit branch June 18, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CI workflow to audit the page (Lighthouse CI + accessibility) on each push

1 participant