Skip to content

Commit

Permalink
ci: normalize schema version in CI pre diff (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Nov 11, 2024
1 parent cce8a6d commit 660041a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Write schema
run: cargo run -- server schema --output-file /tmp/openapi.schema.yaml
run: cargo run -- server schema --output-file /tmp/openapi.schema.yaml-gen

- name: Compare YAML in git to the one just generated
run: diff openapi.schema.yaml /tmp/openapi.schema.yaml
- name: Copy repo schema and strip versions
run: |
cp openapi.schema.yaml /tmp/openapi.schema.yaml-repo
perl -p -i -e 's/^ version: .*/ version: 0.0.0/' /tmp/*.yaml-*
- name: Validate OpenAPI schema
uses: thiyagu06/openapi-validator-action@v1
with:
filepath: /tmp/openapi.schema.yaml
- name: Compare YAML in git to the one just generated
run: diff /tmp/openapi.schema.yaml-repo /tmp/openapi.schema.yaml-gen

0 comments on commit 660041a

Please sign in to comment.