Skip to content

Accessibility (Lighthouse Accessibility / Performance Scan) #4

Accessibility (Lighthouse Accessibility / Performance Scan)

Accessibility (Lighthouse Accessibility / Performance Scan) #4

Workflow file for this run

name: Accessibility (Lighthouse Accessibility / Performance Scan)
on:
workflow_dispatch:
# Run at 13:00 on the first day of each month
schedule:
- cron: "0 13 1 * *"
jobs:
lighthouse:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build site
run: npm run build
- name: Create Lighthouse CI config
run: node ./scripts/extract-routes.js > ./.lighthouserc.json
- name: Run Lighthouse CI (auto-attach artifact)
uses: treosh/lighthouse-ci-action@v12
with:
configPath: ./.lighthouserc.json
uploadArtifacts: true
artifactName: lighthouse-reports
temporaryPublicStorage: false
- name: List report dirs
if: always()
run: |
echo "Root contents:" && ls -la
echo ".lighthouseci contents:" && ls -la .lighthouseci || true