Skip to content

Commit 239a337

Browse files
dmealingclaude
andcommitted
ci: run codegen-ts + cli suites and doc-template drift check in conformance workflow
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 2909919 commit 239a337

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/conformance.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
5151
cd ../render && bun test test/render-conformance.test.ts test/verify-conformance.test.ts test/extract/extract-conformance.test.ts test/output-prompt-conformance.test.ts
5252
# Validator-parity corpus (generated input validation). No Docker.
5353
cd ../integration-tests && bun test test/validation-conformance.test.ts
54+
# Doc-template + CLI suites: byte-identity template gate, embedded-template
55+
# gate, neutrality / collision guards, and the docs golden corpus +
56+
# `meta docs` command. Whole-package so future tests auto-run. No Docker.
57+
cd ../codegen-ts && bun test
58+
cd ../cli && bun test
5459
5560
- name: C# conformance
5661
if: matrix.language == 'csharp'
@@ -122,3 +127,19 @@ jobs:
122127
- uses: oven-sh/setup-bun@v2
123128
- run: bun install
124129
- run: cd server/typescript/packages/metadata && bun run conformance:mutation
130+
131+
doc-template-drift:
132+
# Fails if the bundled package copy of the canonical doc templates, or the
133+
# embedded-templates TS module (used by the standalone `meta` binary), is
134+
# stale. sync-doc-templates.sh reproduces both from the canonical root
135+
# templates/docs/ source; a non-empty diff means a dev forgot to run it.
136+
needs: fixture-lint
137+
runs-on: ubuntu-latest
138+
steps:
139+
- uses: actions/checkout@v4
140+
- uses: oven-sh/setup-bun@v2
141+
- run: bun install
142+
- name: Regenerate bundled + embedded doc templates from canonical
143+
run: bash scripts/sync-doc-templates.sh
144+
- name: Fail if synced/generated doc-template artifacts are stale
145+
run: git diff --exit-code -- server/typescript/packages/codegen-ts/templates server/typescript/packages/codegen-ts/src/render-engine/embedded-templates.generated.ts

0 commit comments

Comments
 (0)