Commit 9a9f955
chore(ci): add path-based job filtering to CI pipeline (#67)
## Summary
Closes #64
- Add `dorny/paths-filter@v3` to detect changed file categories
(`source`, `tooling`, `deps`)
- Conditionally skip expensive jobs (mutation, build, security, sbom)
for docs-only and release-please PRs
- Add always-running `format` job as lightweight baseline check
- Add **CI Gate** job (pattern from `marcstraube/common` collection) as
single required check for branch protection
## Job trigger matrix
| Changed files | format | quality | build | security | mutation | sbom
|
|---|---|---|---|---|---|---|
| `src/**`, `tests/**` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| `**/*.md`, docs only | ✅ | ⏭️ | ⏭️ | ⏭️ | ⏭️ | ⏭️ |
| `eslint.config.js`, `tsconfig.json` | ✅ | ✅ | ✅ | ⏭️ | ⏭️ | ⏭️ |
| `package.json`, `pnpm-lock.yaml` | ✅ | ✅ | ✅ | ✅ | ⏭️ | ✅ |
| `release-please--*` branch | ✅ | ⏭️ | ⏭️ | ⏭️ | ⏭️ | ⏭️ |
## Follow-up
After merge, update Branch Protection required checks: replace
individual job checks with **`CI Gate`**.
## Test plan
- [ ] Verify CI runs all jobs on this PR (source files not changed, but
workflow file is new)
- [ ] After merge, test with a docs-only PR to confirm jobs are skipped
- [ ] Update branch protection to require only `CI Gate`
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d3a1e40 commit 9a9f955
1 file changed
Lines changed: 110 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
16 | 52 | | |
17 | 53 | | |
18 | 54 | | |
| |||
34 | 70 | | |
35 | 71 | | |
36 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
37 | 99 | | |
38 | 100 | | |
39 | 101 | | |
| |||
52 | 114 | | |
53 | 115 | | |
54 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
55 | 123 | | |
56 | | - | |
57 | | - | |
58 | 124 | | |
59 | 125 | | |
60 | 126 | | |
| |||
87 | 153 | | |
88 | 154 | | |
89 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
90 | 161 | | |
91 | | - | |
92 | 162 | | |
93 | 163 | | |
94 | 164 | | |
| |||
111 | 181 | | |
112 | 182 | | |
113 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
114 | 188 | | |
115 | | - | |
116 | | - | |
117 | 189 | | |
118 | 190 | | |
119 | 191 | | |
| |||
143 | 215 | | |
144 | 216 | | |
145 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
146 | 223 | | |
147 | | - | |
148 | | - | |
149 | 224 | | |
150 | 225 | | |
151 | 226 | | |
| |||
172 | 247 | | |
173 | 248 | | |
174 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
0 commit comments