fix JSON #42
Workflow file for this run
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 | |
on: | |
push: | |
paths: | |
- 'people.json' | |
jobs: | |
validate-json: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repository | |
uses: actions/checkout@v3 | |
- name: Setting up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Installing eslint & eslint-plugin-json | |
run: npm i eslint-plugin-json | |
- name: Validate the JSON | |
run: npx eslint people.json | |
- 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 |