diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index a7fd80e..586e971 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -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 }} @@ -44,4 +50,4 @@ jobs: minBestPracticesScore: "50" minPerformanceScore: "50" minProgressiveWebAppScore: "50" - minSeoScore: "50" + minSeoScore: "50" \ No newline at end of file