Commit 0154831
ci: add coverage --min=95 gate with pcov driver
Adds a CI-time coverage floor to a published library that previously ran
coverage: none. Measured coverage is 95.5% (67 tests); floor set at the
measured value rounded down to a clean integer.
- setup-php coverage: none -> pcov (fast driver, both PHP 8.4 + 8.5 legs)
- new composer test:coverage script = pest --coverage --min=95 (teeth are
the --min CLI flag, not a <coverage> XML block, which is a silent no-op
on PHPUnit 10+)
- CI Tests step now runs composer test:coverage; plain composer test stays
for fast local runs without a coverage driver
Teeth proven by exit code: --min=95 -> exit 0 (green), --min=96 -> exit 1.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EmzU5UEBBVH4K691qiuxCh1 parent 7b3d423 commit 0154831
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments