Skip to content

Unlighthouse

Unlighthouse #1704

Workflow file for this run

name: Unlighthouse
on: deployment_status
jobs:
unlighthouse:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
# cache: "npm" # cache not supported in deployment_status, ref: https://github.com/actions/cache/issues/319
- run: npm install -g @unlighthouse/cli puppeteer
- run: npm list -g @unlighthouse/cli
- run: unlighthouse-ci
env:
DEPLOYMENT_URL: ${{ github.event.deployment_status.environment_url }}
VERCEL_AUTOMATION_BYPASS_SECRET: ${{ secrets.VERCEL_AUTOMATION_BYPASS_SECRET }}
- if: always()
uses: actions/upload-artifact@v4
with:
path: ./.unlighthouse/
include-hidden-files: true