File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments