Skip to content

Lighthouse

Lighthouse #255

Workflow file for this run

name: Lighthouse
on:
workflow_run:
workflows:
- Build and deploy GovTool test stack
types:
- completed
workflow_dispatch:
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install -g @lhci/cli@0.12.x
- name: Run lighthouse task
working-directory: ./govtool/frontend
run: |
lhci collect
- name: Evaluate reports
if: github.repository_owner != 'IntersectMBO'
working-directory: ./govtool/frontend
run: |
lhci assert --preset "lighthouse:recommended"
- name: Publish reports
working-directory: ./govtool/frontend
if: github.repository_owner == 'IntersectMBO'
run: |
lhci assert --preset lighthouse:recommended || echo "LightHouse Assertion error ignored ..."
lhci upload --githubAppToken="${{ secrets.LHCI_GITHUB_APP_TOKEN }}" --token="${{ secrets.LHCI_SERVER_TOKEN }}" --serverBaseUrl=${LHCI_SERVER_URL} --ignoreDuplicateBuildFailure
env:
LHCI_SERVER_URL: https://lighthouse-govtool.cardanoapi.io