Skip to content

feat(ci): add Lighthouse audit to CI pipeline#83

Merged
wazolab merged 6 commits intodevelopfrom
feat/lighthouse-ci
Mar 30, 2026
Merged

feat(ci): add Lighthouse audit to CI pipeline#83
wazolab merged 6 commits intodevelopfrom
feat/lighthouse-ci

Conversation

@wazolab
Copy link
Copy Markdown
Member

@wazolab wazolab commented Mar 26, 2026

Summary

  • Add a parallel lighthouse job to the CI workflow that audits the generated static site
  • Create lighthouserc.cjs config: 3 runs against /fr, thresholds at 0.9 for performance, accessibility, best-practices, and SEO
  • Results uploaded to temporary public storage for report links in CI logs

Test plan

  • Verify the lighthouse job runs successfully in CI
  • Check that Lighthouse report link appears in CI logs
  • Confirm all four category scores pass the 0.9 threshold

Closes #82

wazolab added 5 commits March 26, 2026 22:47
Add a parallel Lighthouse CI job that runs performance, accessibility,
best-practices, and SEO audits against the generated static site.
Thresholds set at 0.9 for all categories.

Closes #82
- Audit 3 distinct page layouts: home, contact, and docs
- Downgrade performance assertion to warn (CI runner variance)
- Document intentional NUXT_APP_BASE_URL omission in workflow
Parse LHCI assertion results and open an issue with failure details,
report links, and run context when the audit fails.
treosh/lighthouse-ci-action doesn't accept githubToken. Use a dedicated
step that parses manifest.json and posts a score table as a PR comment.
@github-actions
Copy link
Copy Markdown

Lighthouse Report

URL Performance Accessibility Best Practices SEO
http://localhost:36045/fr null null null null
http://localhost:36045/fr null null null null
http://localhost:36045/fr/contact null null null null
http://localhost:36045/fr/contact null null null null
http://localhost:36045/fr/docs/getting-started/overview null null null null
http://localhost:36045/fr/docs/getting-started/overview null null null null
http://localhost:36045/fr null null null null
http://localhost:36045/fr/contact null null null null
http://localhost:36045/fr/docs/getting-started/overview null null null null

Parse scores from manifest.json summary field instead of individual
report files. Filter to representative runs only (median of 3).
@github-actions
Copy link
Copy Markdown

Lighthouse Report

URL Performance Accessibility Best Practices SEO
/fr 56 96 100 100
/fr/contact 82 96 100 100
/fr/docs/getting-started/overview 70 96 100 100

@wazolab wazolab merged commit cb8e899 into develop Mar 30, 2026
2 checks passed
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.

feat(ci): add Lighthouse audit to CI pipeline

1 participant