Skip to content

add lighthouse template #4

add lighthouse template

add lighthouse template #4

Workflow file for this run

name: PR Lighthouse Insights
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
wait-for-vercel:
name: Wait for Vercel Preview
runs-on: ubuntu-latest
outputs:
url: ${{ steps.get-preview.outputs.url }}
steps:
- name: Wait for Vercel preview URL to be available
id: get-preview
uses: patrickedqvist/wait-for-vercel-preview@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 600
check_interval: 20
environment: Preview
prLighthouseInsights:
name: Run PR Lighthouse Insights
needs: [wait-for-vercel]
uses: ./.github/workflows/template-lighthouse.yml
permissions:
pull-requests: write
with:
url: ${{ needs.wait-for-vercel.outputs.url }}
secrets:
GH_APP_KEY: ${{ secrets.GH_APP_KEY }}