Skip to content

Lighthouse

Lighthouse #5302

Workflow file for this run

name: Lighthouse
on: [deployment_status]
jobs:
lighthouse:
if: github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
# here we only install the dependencies require()d in lighthouserc.js
- run: |
npm i url-join
- name: determine branch
uses: SFDigitalServices/git-the-branch@v1
- uses: treosh/lighthouse-ci-action@v3
with:
serverToken: ${{ secrets.LHCI_BUILD_TOKEN }}
serverBaseUrl: https://lighthouse-ci-sfgov.herokuapp.com
env:
LHCI_BUILD_CONTEXT__CURRENT_BRANCH: ${{ env.GIT_BRANCH }}
LHCI_GITHUB_TOKEN: ${{ github.token }}
LHCI_COLLECT_BASE_URL: ${{ github.event.deployment.payload.web_url }}