willfire 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -1
- package/package.json +10 -5
package/README.md
CHANGED
|
@@ -71,9 +71,25 @@ entries, matching how they appear in the checks UI.
|
|
|
71
71
|
Things that cannot be known statically — e.g. a matrix computed at runtime
|
|
72
72
|
from another job's output — are reported as `unknown` rather than guessed.
|
|
73
73
|
|
|
74
|
+
## Development
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
pnpm install
|
|
78
|
+
pnpm typecheck # tsc over src/, tests included
|
|
79
|
+
pnpm test # vitest, once
|
|
80
|
+
pnpm test:coverage # the 100% floor CI enforces
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Unit tests are colocated with their source (`foo.ts` ↔ `foo.test.ts`) at 100%
|
|
84
|
+
coverage, per the
|
|
85
|
+
[testing-conventions](https://github.com/thekevinscott/testing-conventions)
|
|
86
|
+
standard. `.github/workflows/conventions.yml` enforces that in CI;
|
|
87
|
+
`testing-conventions.toml` holds the thresholds.
|
|
88
|
+
|
|
74
89
|
## Verification
|
|
75
90
|
|
|
76
|
-
|
|
91
|
+
The unit suite fixes the behavior. What fixes the *expectations* is the probe:
|
|
92
|
+
predictions are verified against real GitHub behavior, not just the docs.
|
|
77
93
|
[willrun-probe](https://github.com/thekevinbot/willrun-probe) holds one
|
|
78
94
|
workflow per dispatch rule, and probe PRs exercise each complication
|
|
79
95
|
(docs-only diffs, negation edges, `[skip ci]`, a 301-file diff, PRs into
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "willfire",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Predict the set of CI check entries GitHub Actions will create for a pull request",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"packageManager": "pnpm@10.33.0",
|
|
6
7
|
"author": "Kevin Scott <me@thekevinscott.com>",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
@@ -35,10 +36,11 @@
|
|
|
35
36
|
},
|
|
36
37
|
"scripts": {
|
|
37
38
|
"build": "tsc -p tsconfig.build.json",
|
|
38
|
-
"prepublishOnly": "pnpm build",
|
|
39
|
-
"typecheck": "tsc -p tsconfig.json",
|
|
40
|
-
"test": "node --import tsx --test src/*.test.ts",
|
|
41
39
|
"predict": "tsx src/predict.ts",
|
|
40
|
+
"prepare": "pnpm build",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"test:coverage": "vitest run --coverage",
|
|
43
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
42
44
|
"verify": "tsx src/verify.ts"
|
|
43
45
|
},
|
|
44
46
|
"dependencies": {
|
|
@@ -47,7 +49,10 @@
|
|
|
47
49
|
},
|
|
48
50
|
"devDependencies": {
|
|
49
51
|
"@types/node": "^22.0.0",
|
|
52
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
53
|
+
"testing-conventions": "^0.0.91",
|
|
50
54
|
"tsx": "^4.19.0",
|
|
51
|
-
"typescript": "^5.6.0"
|
|
55
|
+
"typescript": "^5.6.0",
|
|
56
|
+
"vitest": "^4.1.10"
|
|
52
57
|
}
|
|
53
58
|
}
|