Skip to content

Commit f86d6ab

Browse files
committed
ci: add snippet validation to ci-validate workflow
Build snippet-runner and validate all documentation code snippets as part of the CI validation pipeline. Triggers on changes to docs/snippets/, docs/reference/, and tools/snippet-runner/.
1 parent 5c325f4 commit f86d6ab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci-validate.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ on:
2626
- 'packages/wasm/**'
2727
- 'tools/benchmark-harness/**'
2828
- 'tools/e2e-generator/**'
29+
- 'tools/snippet-runner/**'
2930
- 'scripts/**'
31+
- 'docs/snippets/**'
32+
- 'docs/reference/**'
3033
- '.github/actions/**'
3134
- '.cargo/config.toml'
3235
- '.pre-commit-config.yaml'
@@ -58,7 +61,10 @@ on:
5861
- 'packages/wasm/**'
5962
- 'tools/benchmark-harness/**'
6063
- 'tools/e2e-generator/**'
64+
- 'tools/snippet-runner/**'
6165
- 'scripts/**'
66+
- 'docs/snippets/**'
67+
- 'docs/reference/**'
6268
- '.github/actions/**'
6369
- '.cargo/config.toml'
6470
- '.pre-commit-config.yaml'
@@ -220,6 +226,12 @@ jobs:
220226
with:
221227
extra-args: --all-files
222228

229+
- name: Build snippet-runner
230+
run: cargo build --release -p snippet-runner
231+
232+
- name: Validate documentation snippets
233+
run: ./target/release/snippet-runner validate --snippets docs/snippets --reference docs/reference --level syntax
234+
223235
- name: Verify API Parity
224236
run: python scripts/verify_api_parity.py
225237

0 commit comments

Comments
 (0)