Skip to content

Commit 83ae679

Browse files
committed
One last stab at the LHCI workflow
1 parent 5b42dec commit 83ae679

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/lighthouse.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,18 @@ jobs:
6060
- name: Upload Lighthouse results
6161
run: npx @lhci/cli upload --config=.lighthouserc.cjs
6262

63-
- name: Rename report for artifact upload
63+
- name: List contents of .lighthouseci
64+
run: ls -al .lighthouseci || true
65+
66+
- name: Rename Lighthouse report
6467
run: |
6568
mkdir -p .lighthouseci
66-
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
6775
6876
- name: Save Lighthouse report
6977
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)