Lighthouse-github-action-comment
Lighthouse-github-action-comment copied to clipboard
Automated lighthouse metrics as a comment to your Vercel PR
🚀 Automated Lighthouse metrics to your PR with Vercel and Github Actions.
The complete action can be found in Lighthouse-github-action/.github/workflows/
Action workflow
- Get the preview url for the PR (from Vercel).
- Run a Lighthouse audit on the preview url.
- Format the score to a table (+throw in a few emojis).
- 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.