Skip to content

Change file globbing to .schema.json rather than .json #2

Change file globbing to .schema.json rather than .json

Change file globbing to .schema.json rather than .json #2

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!"