Skip to content

Commit de4d6fe

Browse files
Tools: HF-24 wire snippets:check into the lint CI workflow
Runs `npm run snippets:check` (= extract + `git diff --exit-code` on `test-utils/snippets/`) before the linter. Fails the lint job — same gate as eslint — when a documented snippet has drifted from the committed generated file. Closes the feedback loop the codegen infrastructure was built for: docs become a load-bearing source of truth, not a parallel artifact that drifts silently. Companion to 6a441b3 (the codegen MVP); together these mean any future edit to `docs/guide/currency-handling.md`'s adapter snippet must either be regenerated locally or the CI will block the merge.
1 parent 6a441b3 commit de4d6fe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,8 @@ jobs:
4444
- name: Install dependencies
4545
run: npm ci
4646

47+
- name: Check docs snippets are in sync with extracted source-of-truth
48+
run: npm run snippets:check
49+
4750
- name: Run linter
4851
run: npm run lint

0 commit comments

Comments
 (0)