From 550097f4de8e47b901f11a5bae478818539f2bcb Mon Sep 17 00:00:00 2001 From: Gabo Esquivel Date: Fri, 5 Apr 2024 21:40:25 -0600 Subject: [PATCH 1/5] devops: lighthouse reports on prs --- .githu | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .githu diff --git a/.githu b/.githu new file mode 100644 index 00000000..e69de29b From 3f8e0543dc92bab4b77933e97d2c70034076da8b Mon Sep 17 00:00:00 2001 From: Gabo Esquivel Date: Fri, 5 Apr 2024 21:41:21 -0600 Subject: [PATCH 2/5] chore: cleanup --- .githu | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .githu diff --git a/.githu b/.githu deleted file mode 100644 index e69de29b..00000000 From 634099ba682d04c49f72bf7e75f32ea1c67502a6 Mon Sep 17 00:00:00 2001 From: Gabo Esquivel Date: Fri, 5 Apr 2024 22:01:00 -0600 Subject: [PATCH 3/5] chore: test lighthouse ci --- .test-lighthouse | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .test-lighthouse diff --git a/.test-lighthouse b/.test-lighthouse new file mode 100644 index 00000000..e69de29b From 5ca11603c5b095737f9e3bc064cf47df4eae49f9 Mon Sep 17 00:00:00 2001 From: Gabo Esquivel Date: Sat, 6 Apr 2024 00:12:22 -0600 Subject: [PATCH 4/5] devops: lighthouse reports on pr --- .github/workflows/lighthouse.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 38daa222..cc66528f 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Add comment to PR id: loading_comment_to_pr - uses: marocchino/sticky-pull-request-comment@v1 + uses: marocchino/sticky-pull-request-comment@latest with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} number: ${{ github.event.issue.number }} @@ -20,7 +20,7 @@ jobs: Running Lighthouse audit... - name: Capture Vercel preview URL id: vercel_preview_url - uses: aaron-binary/vercel-preview-url-action@v0.0.3 + uses: aaron-binary/vercel-preview-url-action@latest with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v2 @@ -34,7 +34,7 @@ jobs: temporaryPublicStorage: true - name: Format lighthouse score id: format_lighthouse_score - uses: actions/github-script@v3 + uses: actions/github-script@latest with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -62,7 +62,7 @@ jobs: core.setOutput("comment", comment); - name: Add comment to PR id: comment_to_pr - uses: marocchino/sticky-pull-request-comment@v1 + uses: marocchino/sticky-pull-request-comment@latest with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} number: ${{ github.event.issue.number }} From 4c48416f1e54f1246124f01cb0536881153f6856 Mon Sep 17 00:00:00 2001 From: Gabo Esquivel Date: Sat, 6 Apr 2024 00:25:00 -0600 Subject: [PATCH 5/5] devops: use zentered/vercel-preview-url --- .github/workflows/lighthouse.yml | 8 +++++--- .test-lighthouse | 0 2 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 .test-lighthouse diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index cc66528f..66256874 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -20,9 +20,11 @@ jobs: Running Lighthouse audit... - name: Capture Vercel preview URL id: vercel_preview_url - uses: aaron-binary/vercel-preview-url-action@latest - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: zentered/vercel-preview-url@v1.1.9 + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + - name: Get URL + run: echo "https://${{ steps.vercel_preview_url.outputs.preview_url }}" - uses: actions/checkout@v2 - name: Audit preview URL with Lighthouse id: lighthouse_audit diff --git a/.test-lighthouse b/.test-lighthouse deleted file mode 100644 index e69de29b..00000000