Add a GitHub workflow to validate the JSON schema #1
Workflow file for this run
This file contains hidden or 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: Validate JSON Schema | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "schema/**/*.schema.json" | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - "schema/**/*.schema.json" | |
| workflow_dispatch: | |
| jobs: | |
| validate-json: | |
| name: Validate JSON Schema | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Validate JSON schema | |
| uses: dsanders11/json-schema-validate-action@v1.4.0 | |
| with: | |
| schema: "json-schema" | |
| files: "schema/**/*.schema.json" |