Merge pull request #6 from rcarmonad/patch-1 #19
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: Validate people.json Schema | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
paths: | |
- 'people.json' | |
jobs: | |
validate-json-schema: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repository | |
uses: actions/[email protected] | |
- name: Setting up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '18' | |
- name: Installing ajv CLI | |
run: npm i -g ajv-cli | |
- name: Validate the JSON Schema | |
run: ajv validate -s schema.json -d people.json --spec=draft2020 |