From 3bd933128a87e3988589386db2246ebfeeb376b2 Mon Sep 17 00:00:00 2001 From: Gabo Esquivel Date: Sat, 6 Apr 2024 03:36:44 -0600 Subject: [PATCH] devops: debug lhci results comment (#89) * devops: debug lhci results comment * devops: debug lhci results comment * devops: debug lhci results comment * devops: lhci results table comment * devops: debug lhci results comment --- .github/workflows/lighthouse.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 819d48aa..78e0eecc 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -52,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`; @@ -66,7 +68,7 @@ jobs: comment += `| ${score(result.summary.pwa)} PWA | ${result.summary.pwa} |\n`; }); - comment += '\n*Lighthouse ran on ' + Object.keys(links)[0] + '*'; + core.setOutput("comment", comment); - name: Add comment to PR