Commit c01adc2
committed
ci: headless tests with coverage and OpenAPI contract validation
- twd-cli, vite-plugin-istanbul and nyc as devDependencies
- twd.config.json points puppeteer at :3000, instruments coverage to
./coverage / .nyc_output and validates mocks against
contracts/todos-3.0.json (strict, error mode, /api baseUrl)
- vite.config.ts wires vite-plugin-istanbul (requireEnv off in CI)
- npm scripts: dev:ci, test:ci, collect:coverage:{text,html,lcov}
- GitHub Actions workflow boots dev:ci, runs the BRIKEV/twd-cli action
with contract-report enabled, then prints text coverage; granted
pull-requests: write so the action can post the contract summary1 parent 0ed0fb9 commit c01adc2
6 files changed
Lines changed: 2484 additions & 59 deletions
File tree
- .github/workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | | - | |
15 | | - | |
| 17 | + | |
16 | 18 | | |
17 | | - | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | | - | |
29 | | - | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments