Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Jun 12, 2024
2 parents 4739e3c + 6239f14 commit 105c92c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lighthouse-on-vercel-preview-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ jobs:
- run: sleep 120
- name: Capture Vercel preview URL
id: vercel_preview_url
uses: zentered/vercel-preview-url@v1.1.9
uses: zentered/vercel-preview-url@v1.2.0
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
with:
# find project id here: https://vercel.com/studio-freight/satus/settings
vercel_team_id: 'studio-freight'
vercel_project_id: prj_GNzV5Jq8gnOAr2BF2xcDbiL22oWb
- uses: actions/checkout@v4.1.0
- uses: actions/checkout@v4.1.6
- name: Audit preview URL with Lighthouse
id: lighthouse_audit
uses: treosh/lighthouse-ci-action@v10
uses: treosh/lighthouse-ci-action@v11
with:
urls: |
"https://${{ steps.vercel_preview_url.outputs.preview_url }}"
uploadArtifacts: true
temporaryPublicStorage: true
- name: Format lighthouse score
id: format_lighthouse_score
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down

0 comments on commit 105c92c

Please sign in to comment.