We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b42dec commit 83ae679Copy full SHA for 83ae679
.github/workflows/lighthouse.yml
@@ -60,10 +60,18 @@ jobs:
60
- name: Upload Lighthouse results
61
run: npx @lhci/cli upload --config=.lighthouserc.cjs
62
63
- - name: Rename report for artifact upload
+ - name: List contents of .lighthouseci
64
+ run: ls -al .lighthouseci || true
65
+
66
+ - name: Rename Lighthouse report
67
run: |
68
mkdir -p .lighthouseci
- mv .lighthouseci/*-lhr.report.html .lighthouseci/report.html || true
69
+ REPORT=$(find .lighthouseci -name "*.report.html" | head -n 1)
70
+ if [ -n "$REPORT" ]; then
71
+ mv "$REPORT" .lighthouseci/report.html
72
+ else
73
+ echo "No Lighthouse HTML report found"
74
+ fi
75
76
- name: Save Lighthouse report
77
uses: actions/upload-artifact@v4
0 commit comments