Skip to content

OskarAhl/Lighthouse-github-action-comment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Automated Lighthouse metrics to your PR with Vercel and Github Actions.

The complete action can be found in Lighthouse-github-action/.github/workflows/

Alt Text

Action workflow

  1. Get the preview url for the PR (from Vercel).
  2. Run a Lighthouse audit on the preview url.
  3. Format the score to a table (+throw in a few emojis).
  4. Post a comment on the PR with the formatted score.

Integrations used:

Limitations:

  • Always runs the Lighthouse audit on the root page.

Potential future improvements:

  • Combine the action with a budget to prevent PRs that bring the metrics below a set treshhold.
  • Run the audit only on the pages affected by the PR.
  • Compare the collected metrics with the actual metrics of your production site.

Releases

No releases published

Packages

No packages published

Languages