Skip to content

Commit

Permalink
feat: assert whether generated and versioned schema are identical
Browse files Browse the repository at this point in the history
  • Loading branch information
raimundo-henriques committed Jun 6, 2024
1 parent 619a3b5 commit ca6555f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
cargo test
cargo clippy -- -Dwarnings
generate_schema:
validate_schema:
runs-on: ubuntu-latest
needs: build_and_test
if: github.ref == 'refs/heads/main'
# if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Generate schema
- name: Test schema
run: |
cargo run
cargo run --release > schema.gen.json
# assert the generated and versioned file equal
diff ../schema/data-model-schema.json schema.gen.json

0 comments on commit ca6555f

Please sign in to comment.