Skip to content

Commit

Permalink
devops: debug lhci results comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboesquivel committed Apr 6, 2024
1 parent 5b8463d commit 230ac6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ jobs:
with:
urls: |
"https://${{ steps.vercel_preview_url.outputs.preview_url }}"
"https://${{ steps.vercel_preview_url.outputs.preview_url }}/b/moneybot"
"https://${{ steps.vercel_preview_url.outputs.preview_url }}/u/slug-1"
"https://${{ steps.vercel_preview_url.outputs.preview_url }}/p"
"https://${{ steps.vercel_preview_url.outputs.preview_url }}//health/
# budgetPath: '.github/lighthouse/budget.json'
uploadArtifacts: true
temporaryPublicStorage: true
Expand All @@ -56,6 +52,8 @@ jobs:
let comment = '⚡️ [Lighthouse report]'
comment += JSON.stringify('{ "links": ${{steps.lighthouse_audit.outputs.links}}, "manifest": ${{steps.lighthouse_audit.outputs.manifest}} }')
manifest.forEach(result => {
const pageLink = result.url;
comment = `Link: ${pageLink}:\n`;
Expand All @@ -70,6 +68,8 @@ jobs:
comment += `| ${score(result.summary.pwa)} PWA | ${result.summary.pwa} |\n`;
});
core.setOutput("comment", comment);
- name: Add comment to PR
id: comment_to_pr
Expand Down

0 comments on commit 230ac6a

Please sign in to comment.