ci: run lighthouse report#1985
Conversation
✅ Deploy Preview for expressjscom-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
066240c to
ee5546e
Compare
ee5546e to
a2d1b75
Compare
|
Great job @ShubhamOulkar! In the past I’ve used Unlighthouse to generate reports from scratch and upload them to Netlify. We could even set up a secondary project for that. Here's the link I used: https://unlighthouse.dev/integrations/ci#github-actions-netlify-example Your approach looks really solid as well. Nice work! 👍 |
|
I have my doubts about how important it really is to have Lighthouse, but I think we could give it a try. What I would like, and this would be a requirement for me to accept it, is that the report can be commented on the issue. As it stands, no one would notice that the report is being generated, and if no one sees it, then what’s the point of generating it? Making it accessible would be important.
I’d prefer not to rely too much on Netlify, but if this tool works independently of where the preview is generated, it would be fine with me too. |
I tried commenting report on PR in #1984. But it keep hitting 403 error denial of access
If this tool provide ous correct SEO results then I am +1 on this. I will try this tool. |
That was a permissions issue with the actions I can help you with that if you’d like
Yes, but not really, keep in mind that not everyone is keeping an eye on the workflows, and a comment would make them more visible. On the other hand, if the comment isn't added in regular PRs, it could easily be missed, which defeats the purpose. Having to dig into the workflow and check the results takes time, so people might just skip it, something that a simple comment would solve. That’s why the comment is almost essential. |
bjohansebas
left a comment
There was a problem hiding this comment.
I still don’t understand why the workflow isn’t running, it didn’t run for #1988 either when it was using pull_request_target. It only ran when switched to pull_request.
see GITHUB_REF for pull_request in the table see GITHUB_REF for pull_request_target. To trigger the action on PR for You can refer from this repo |
|
Hi @UlisesGascon, I tried Should we do this in Netlify? https://docs.netlify.com/manage/monitoring/lighthouse/#set-up-embedded-lighthouse-scores-and-reports-for-your-site. |
bjohansebas
left a comment
There was a problem hiding this comment.
LGTM, sorry for the delay


Lighthouse Report
Download lighthouse report
ref: https://github.com/GoogleChrome/lighthouse?tab=readme-ov-file#using-the-node-cli
perf: https://pagespeed.web.dev/analysis/https-expressjs-com-en-api-html/wld1auit0n?form_factor=mobile