jakejarvis / lighthouse-action

💡🏠 GitHub Action for running @GoogleChromeLabs Lighthouse webpage audits

Home Page:https://github.com/marketplace/actions/lighthouse-audit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: integrate with github deployment api

KnisterPeter opened this issue · comments

It would be great to integrate with github deployment / deployment_status apis.
I'm not sure if netflify supports this, since I'm not using netlify, but it will work with zeit now.

I guess the right way would be to listen to deployment_status updates until the status is success. In the response of that we have the deployment URL which could then be used to run lighthouse on.

Great idea — this would also solve the race condition problem (#2) I believe. Right now in my personal use I had to put sleep 30 as a step between deployment and Lighthouse to mitigate this. Will look into this as soon as I get a chance, thanks!