Skip to content

Commit

Permalink
chore: check in generated openapi spec.
Browse files Browse the repository at this point in the history
This will allow use to more easily spot and review API changes.

Signed-off-by: Hiram Chirino <hiram@hiramchirino.com>
  • Loading branch information
chirino authored and ctron committed Aug 7, 2024
1 parent bdd3b38 commit 31ece32
Show file tree
Hide file tree
Showing 3 changed files with 2,446 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@ jobs:
run: cargo test -- --nocapture
env:
RUST_LOG: info,sqlx=error,sea_orm=error
- name: Validate Generated Openapi Spec
run: cargo xtask validate-openapi
- name: Export and Validate Generated Openapi Spec
run: |
cargo xtask validate-openapi --export
git diff --quiet
if [ $? -gt 0 ]; then
echo "::error::Uncommitted changes (run `cargo xtask validate-openapi --export` after making api changes)"
exit 1
fi
- name: Ensure schemas are up-to-date
run: |
cargo xtask generate-schemas
Expand Down
Loading

0 comments on commit 31ece32

Please sign in to comment.