Skip to content

Commit 8b52a7f

Browse files
committed
ci: fold the docs drift assertion into the codegen check
1 parent d3b9bc2 commit 8b52a7f

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,17 @@ jobs:
2828
2929
# Hermetic: regenerates from the committed spec, so this verifies that the committed
3030
# generated code still reproduces from it, with no network dependency. Refreshing the
31-
# spec itself is the release workflow's job.
31+
# spec itself is the release workflow's job. `generate` also runs sync-docs (see
32+
# tools/RoxyDevTools/Program.cs), so the docs and the compiled example guard are
33+
# asserted in the same diff rather than by a second identical run.
3234
- name: Codegen drift check
3335
env:
3436
ROXYAPI_SPEC_FILE: specs/openapi.json
3537
run: |
3638
dotnet run --project tools/RoxyDevTools -- generate
37-
git diff --exit-code -- specs/openapi.json src/Generated \
39+
git diff --exit-code -- specs/openapi.json src/Generated README.md AGENTS.md docs/llms-full.txt tests/RoxyApi.Tests/Generated \
3840
|| { echo 'codegen drift: run "dotnet run --project tools/RoxyDevTools -- generate" and commit the result'; exit 1; }
3941
40-
- name: Docs drift check
41-
run: |
42-
dotnet run --project tools/RoxyDevTools -- sync-docs
43-
git diff --exit-code -- README.md AGENTS.md docs/llms-full.txt tests/RoxyApi.Tests/Generated \
44-
|| { echo 'docs drift: run "dotnet run --project tools/RoxyDevTools -- sync-docs" and commit the result'; exit 1; }
45-
4642
- name: Format check
4743
run: dotnet format --verify-no-changes --exclude src/Generated/
4844

0 commit comments

Comments
 (0)