Rename examples/UseCaseI_Electrophysiology.json to examples/UseCaseI_… #61
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: JSON Schema Validation | |
on: | |
push: | |
paths: | |
- 'examples/*.json' | |
- 'schemas/*.json' | |
branches: | |
- main | |
pull_request: | |
paths: | |
- 'examples/*.json' | |
- 'schemas/*.json' | |
workflow_dispatch: | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Cache npm dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install ajv-cli | |
run: npm install -g ajv-cli ajv-formats --silent | |
- name: Validate JSON files | |
run: scripts/validate_examples.sh | |