Skip to content

Commit

Permalink
test: verify schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku authored and merge-me[bot] committed Dec 21, 2023
1 parent 89f6e71 commit 8020526
Show file tree
Hide file tree
Showing 4 changed files with 286 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install ajv-cli
run: npm -g i ajv-cli
- name: Validate Plugins JSON File
run: ajv test -s resources/plugins-schema.json -d plugins.json --errors=text --valid
- name: Install dependencies
run: npm ci
- name: Build
run: npm run all
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
276 changes: 275 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"private": true,
"version": "0.0.0",
"scripts": {
"test": "echo \"No tests\""
"all": "npm test",
"test": "npm run validate-plugins",
"validate-plugins": "ajv test -s resources/plugins-schema.json -d plugins.json --errors=text --valid"
},
"devDependencies": {
"ajv-cli": "^5.0.0"
}
}

0 comments on commit 8020526

Please sign in to comment.