Skip to content

Commit

Permalink
Add jsonschema schema validation to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
theferrit32 committed Nov 4, 2024
1 parent a59d758 commit 3e1782a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:

jobs:
setup:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -27,3 +27,9 @@ jobs:
run: |
cd schema
make all
- name: Validate jsonschemas are valid
run: |
for schema_f in schema/vrs/json/*; do
python -c "import json, jsonschema; jsonschema.Draft202012Validator.check_schema(json.load(open('$schema_f')))"
done

0 comments on commit 3e1782a

Please sign in to comment.