thegreenwebfoundation / lighthouse-plugin-greenhouse

Lighthouse, but for running sites on renewable power instead of fossil fuels
Apache License 2.0
56 stars 4 forks source link

Add tutorial on how to set this up on travis #4

Open mrchrisadams opened 5 years ago

mrchrisadams commented 5 years ago

This nice man has made a youtube video on how to use Lighthouse with Travis.

https://www.youtube.com/watch?v=82SVcPFIVQI

And the package.json file refers to lighthouse too:

https://github.com/kalaspuffar/simply-communication/blob/master/package.json

Which refers to this, a handy docker container for lighthouse.

https://github.com/GoogleChromeLabs/lighthousebot

This makes me think you could run this on other hosted CI platforms too.

We should investigate how, and make some docs for this.

C

mrchrisadams commented 5 years ago

Okay. I have this working on travis now.

It was fairly straightforward, so if I can find a project on github to add it to, I think there's a post to be written.

marians commented 5 years ago

To plug this here, at Giant Swarm we built https://github.com/giantswarm/lighthouse-keeper and https://github.com/giantswarm/lighthouse for this purpose. The idea is to compare the current branch against master.

We stopped using it for now, as we found that the lighthouse test results were too flaky/inconsistent. Even if we changed nothing in a web site/app we would get changes in scoring. And then it usually checks one URL, but not specifically the URL you might be affecting most with a change.

So while it was a nie idea, we didn't make it work yet in practice. But we are also not a big web shop and didn't a lot of effort into it.

I still use it to run checks on the command line.