Use this action to compare lighthouse results between base branch(master/main) and triggered branch
- ✅ Collect data from lhci server
- 😻 See both results compared in comments
- ⚙️ Link it on your server where
lighthouse-server
is running
- Copy the token provided on the authorization confirmation page and add it to your secret
githubToken
- Add the server url where the lhci server is running to
lhciServerURL
- Add
baseBranch
if your default branch is not master (default branch against which your PR should be compared) - Enjoy as the it gets the results for you ! 🕵️
token
github token to make comment from which PR was raised
lhciServerURL
URL where lighthouse server is deployed
baseBranch
if you use non master
branch, pass it here
How to consume: If this is your first time working with github actions, then use the below example. If you have already worked on it, go for 2nd code snippet
jobs:
lighthouse-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Compare lighthouse data
uses: mdsadiq/[email protected]
with:
lhciServerURL: https://example.com
githubToken: ${{ secret.LH_COMPARE_GITHUB_APP_TOKEN }}
uses: mdsadiq/[email protected]
with:
lhciServerURL: https://example.com
githubToken: ${{ secret.LH_COMPARE_GITHUB_APP_TOKEN }}
[x] support comparing more than one URL [] support lhci servers that are protected behind authentication