Add time & time bnds #92
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: JSON Schema CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| env: | |
| SCHEMA_DIR: au.org.access-nri/model/output/file-metadata/2-0-0 | |
| TEST_DIR: tests/2-0-0 | |
| jobs: | |
| schema-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install the Sourcemeta JSON Schema CLI | |
| uses: sourcemeta/jsonschema@v11.8.3 | |
| - name: Check schemas against their metaschemas | |
| run: jsonschema metaschema --verbose $SCHEMA_DIR | |
| - name: Check schemas are formatted | |
| run: jsonschema fmt --check --verbose $SCHEMA_DIR | |
| - name: Lint schemas | |
| run: jsonschema lint --verbose --exclude enum_with_type $SCHEMA_DIR | |
| - name: Run test suite | |
| run: jsonschema test --verbose $TEST_DIR --resolve $SCHEMA_DIR |