jabranr / covidonation

List of resources, donations, charities and information on ways to help in Coronavirus (COVID-19) pandemic.
https://covidonation.pages.dev
2 stars 1 forks source link

Add Lighthouse CLI with github workflow #110

Open jabranr opened 4 years ago

jabranr commented 4 years ago

Add lighthouse CLI to run with github workflow on a successful deployment.

References

justaashir commented 4 years ago

Netlify almost takes 2 minutes, after the push to deploy. The process looks something like this:

So, we have to wait for Netlify to run the Lighthouse CLI. Look at the screenshot This looks promising, it also integrates with netlify

jabranr commented 4 years ago

That does look great. Only thing that production site is in GitHub Pages and performance analysis won't be same compared to the staging site on netlify we have.

This is because, we have Cloudflare caching and other rules for production but not for staging. Perhaps there is a missing part there that it needs the same rules for caching too.

jabranr commented 4 years ago

Lighthouse report screenshots, although not too much difference there.

Production (GitHub Pages + Cloudflare)
Staging (netlify)