|
51 | 51 | 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 |
52 | 52 | # Validator-parity corpus (generated input validation). No Docker. |
53 | 53 | 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 |
54 | 59 |
|
55 | 60 | - name: C# conformance |
56 | 61 | if: matrix.language == 'csharp' |
@@ -122,3 +127,19 @@ jobs: |
122 | 127 | - uses: oven-sh/setup-bun@v2 |
123 | 128 | - run: bun install |
124 | 129 | - 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