Skip to content

lighthouse

lighthouse #15

Workflow file for this run

name: lighthouse
on:
workflow_run:
workflows: ["deploy"]
types:
- completed
workflow_dispatch:
env:
URL: https://jessekela.com/
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Audit URLs using Lighthouse
id: lighthouse
uses: treosh/lighthouse-ci-action@v12
with:
urls: ${{ env.URL }}
runs: 3
uploadArtifacts: true
temporaryPublicStorage: true
- name: Report
run: |
LINKS=$(echo '${{ steps.lighthouse.outputs.links }}' | jq -r --arg url "${{ env.URL }}" '.[$url]')
echo "URL: $LINKS"