Skip to content

Commit 192c1cf

Browse files
committed
fix(ci): retain Markdown coverage within runtime directories
Signed-off-by: Tom Brow <[email protected]>
1 parent fc904ba commit 192c1cf

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@ jobs:
3838
# PR files come from GitHub's PR diff. A tokenless comparison uses the
3939
# checked-out merge commit and can include newer, unrelated base changes.
4040
token: ${{ github.token }}
41-
# Ordinary Markdown is documentation; explicitly retain Markdown that
42-
# is embedded in runtime binaries as prompts or agent skills.
41+
# Root and docs/ Markdown do not select runtime suites. Markdown under
42+
# runtime directories remains covered by the directory filters below.
4343
filters: |
4444
rust:
45-
- 'crates/**/!(*.md)'
46-
- 'crates/buzz-acp/src/{base_prompt,session_model_channel,session_model_thread}.md'
47-
- 'migrations/**/!(*.md)'
48-
- 'schema/**/!(*.md)'
45+
- 'crates/**'
46+
- 'migrations/**'
47+
- 'schema/**'
4948
- 'Cargo.toml'
5049
- 'Cargo.lock'
5150
- 'rust-toolchain.toml'
@@ -67,17 +66,15 @@ jobs:
6766
desktop:
6867
- 'scripts/model-capabilities.json'
6968
- 'scripts/normative-corpus.json'
70-
- 'desktop/**/!(*.md)'
71-
- 'desktop/src-tauri/src/managed_agents/{nest_agents,nest_skill,screenshot_skill}.md'
69+
- 'desktop/**'
7270
- 'pnpm-lock.yaml'
7371
desktop-rust:
74-
- 'desktop/src-tauri/**/!(*.md)'
75-
- 'desktop/src-tauri/src/managed_agents/{nest_agents,nest_skill,screenshot_skill}.md'
72+
- 'desktop/src-tauri/**'
7673
web:
77-
- 'web/**/!(*.md)'
74+
- 'web/**'
7875
- 'pnpm-lock.yaml'
7976
mobile:
80-
- 'mobile/**/!(*.md)'
77+
- 'mobile/**'
8178
- 'scripts/mobile-release.sh'
8279
- 'scripts/mobile-worktree-overrides.sh'
8380
- 'scripts/mobile-worktree-clean.sh'

‎scripts/ci-selection.test.mjs‎

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -212,26 +212,29 @@ const scenarios = [
212212
[],
213213
],
214214
[
215-
"nested documentation",
216-
[
217-
"crates/buzz-cli/README.md",
218-
"desktop/README.md",
219-
"desktop/src-tauri/README.md",
220-
"web/docs/design.md",
221-
"mobile/test/README.md",
222-
"schema/README.md",
223-
"migrations/README.md",
224-
],
215+
"nested docs directory",
216+
["docs/mobile/design.md", "docs/nips/NIP-FI.md"],
225217
[],
226218
],
219+
["crate Markdown", ["crates/buzz-cli/README.md"], ["rust"]],
220+
["desktop Markdown", ["desktop/README.md"], ["desktop"]],
221+
[
222+
"Tauri Markdown",
223+
["desktop/src-tauri/README.md"],
224+
["desktop", "desktop-rust"],
225+
],
226+
["web Markdown", ["web/docs/design.md"], ["web"]],
227+
["mobile Markdown", ["mobile/test/README.md"], ["mobile"]],
228+
["schema Markdown", ["schema/README.md"], ["rust"]],
229+
["migration Markdown", ["migrations/README.md"], ["rust"]],
227230
[
228231
"mixed documentation and desktop",
229-
["VISION_MOBILE.md", "mobile/README.md", "desktop/src/main.tsx"],
232+
["VISION_MOBILE.md", "docs/mobile/design.md", "desktop/src/main.tsx"],
230233
["desktop"],
231234
],
232235
[
233236
"mixed documentation and relay",
234-
["desktop/README.md", "crates/buzz-relay/src/lib.rs"],
237+
["docs/desktop/design.md", "crates/buzz-relay/src/lib.rs"],
235238
["rust"],
236239
],
237240
["embedded ACP prompt", ["crates/buzz-acp/src/base_prompt.md"], ["rust"]],

0 commit comments

Comments
 (0)