Skip to content

Commit 5d834cb

Browse files
ci: check generated web clients match codegen (#2029)
Co-authored-by: William Bergamin <WilliamBergamin@users.noreply.github.com>
1 parent cf58263 commit 5d834cb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/ci-build.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ jobs:
2929
python-version: ${{ env.LATEST_SUPPORTED_PY }}
3030
- name: Run lint verification
3131
run: ./scripts/lint.sh
32+
- name: Verify generated web clients match codegen
33+
run: |
34+
python scripts/codegen.py --path .
35+
./scripts/format.sh --no-install
36+
if ! git diff --exit-code; then
37+
echo "::error::Generated web clients are out of date. Run 'python scripts/codegen.py --path .' and './scripts/format.sh', then commit the changes."
38+
exit 1
39+
fi
3240
3341
typecheck:
3442
name: Typecheck

0 commit comments

Comments
 (0)