Commit b29aada
fix(lighthouse-ci): upload artifacts from the treosh action's resultsPath output
All 27 Lighthouse cells succeeded in CI run db8a4bb but NO PR comment
was posted. The Lighthouse Report job logged:
Only 0/27 Lighthouse cells have results (< 50%). Skipping comment.
Root cause: the upload-artifact step had `path: .lighthouseci/` (in our
repo root), but `lhci collect` writes to `.lighthouseci/` inside the
treosh action's own working directory (`/home/runner/work/_actions/treosh/
lighthouse-ci-action/.../node_modules/lighthouse-ci/` or similar) \u2014 not
our repo root. So the upload step found 0 files, and because of
`if-no-files-found: ignore`, silently succeeded with no artifact uploaded.
All 27 cells therefore reported "success" while uploading nothing.
The treosh action exposes the actual path via its `resultsPath` output.
Fix:
- Add `id: lighthouse` to the action step.
- Switch `path:` to `${{ steps.lighthouse.outputs.resultsPath }}`.
- Gate the upload on `resultsPath` being set so a failed Lighthouse run
doesn't try to upload nothing.
- Switch `if-no-files-found` from `ignore` to `error` so a missing or
empty dir is now a loud bug instead of a silent zero-upload.
Co-Authored-By: Claude claude-opus-4-5 <noreply@anthropic.com>1 parent db8a4bb commit b29aada
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1307 | 1307 | | |
1308 | 1308 | | |
1309 | 1309 | | |
| 1310 | + | |
1310 | 1311 | | |
1311 | 1312 | | |
1312 | 1313 | | |
| |||
1329 | 1330 | | |
1330 | 1331 | | |
1331 | 1332 | | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
1332 | 1338 | | |
1333 | | - | |
| 1339 | + | |
1334 | 1340 | | |
1335 | 1341 | | |
1336 | | - | |
| 1342 | + | |
1337 | 1343 | | |
1338 | | - | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
1339 | 1347 | | |
1340 | 1348 | | |
1341 | 1349 | | |
| |||
0 commit comments