Skip to content

Lighthouse CI

Lighthouse CI #45

Workflow file for this run

name: Lighthouse CI
on:
workflow_run:
workflows: [Deploy to Github Pages]
types:
- completed
workflow_dispatch:
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: ./.github/actions/build
with:
notesreview-api-url: ${{ secrets.NOTESREVIEW_API_URL }}
- name: Lighthouse CI
run: |
npm install -g @lhci/[email protected]
lhci autorun --config=".github/lighthouse/lighthouserc.json"
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: lighthouse-results
path: .lighthouseci/*.html