Commit c91eb77
chore(ci): run the coverage report only when a report exists
`always()` ran the coverage action even when `npm ci` or `npm run lint`
had already failed. No coverage file exists at that point, so the action
failed with ENOENT and became the last red step in the job. That hid the
real cause, which is what happened on #126 and #130.
`!cancelled()` keeps the useful half of `always()`: the report still runs
when the test step fails, which is the point of `reportOnFailure: true`
in vitest.config.ts. It drops the half nobody wants, which is running the
step after you cancel the job.
The `hashFiles` guard skips the step when there is no coverage file to
publish.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ttm65yYvBRc7DBwguJW1XE1 parent e4aad7b commit c91eb77
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
0 commit comments