Skip to content

Commit

Permalink
Update CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
FazCodeFR committed Jun 13, 2024
1 parent 325d2b9 commit 68d6b3a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ jobs:
- name: Deploy Project Artifacts to Vercel
id: vercel_deploy
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

continue-on-error: true

- name: Extract Preview URL
id: extract_url
run: echo "::set-output name=preview-url::$(vercel --token=${{ secrets.VERCEL_TOKEN }} ls --target=preview | grep -o 'https://[^ ]*')"

- name: Lighthouse Check
id: lighthouseCheck
uses: foo-software/lighthouse-check-action@master
with:
urls: "[${{ steps.extract_url.outputs.preview-url }}]"
fooApiToken: ${{ secrets.LIGHTHOUSE_CHECK_API_TOKEN }}
urlsJson: '[["${{ secrets.LIGHTHOUSE_CHECK_API_TOKEN }}", "${{ steps.extract_url.outputs.preview-url }}"]]'
prCommentEnabled: true
gitAuthor: ${{ github.actor }}
gitBranch: ${{ github.ref }}
Expand All @@ -44,4 +50,4 @@ jobs:
minBestPracticesScore: "50"
minPerformanceScore: "50"
minProgressiveWebAppScore: "50"
minSeoScore: "50"
minSeoScore: "50"

1 comment on commit 68d6b3a

@vercel
Copy link

@vercel vercel bot commented on 68d6b3a Jun 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.