Change file globbing to .schema.json rather than .json #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and Validate JSON Schemas | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- repo-cleanup-refactor | |
jobs: | |
lint-and-validate-schemas: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use jsonschema Action | |
uses: sourcemeta/[email protected] | |
- name: Validate JSON Schemas | |
run: jsonschema lint ukaea-schema/**/*.schema.json | |
- name: Verify JSON Schemas | |
run: jsonschema metaschema ukaea-schema/**/*.schema.json | |
- name: Report success | |
if: success() | |
run: echo "All JSON schemas have been successfully validated and linted!" |