Skip to content

Commit

Permalink
Add schema validation to CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrimes committed Feb 23, 2024
1 parent e41f6e9 commit ff90e11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Check formatting
working-directory: sof-js
run: bun run check-fmt
- name: Validate JSON tests
working-directory: sof-js
run: bun run validate
- name: Run tests
working-directory: sof-js
run: bun test
Expand Down
3 changes: 2 additions & 1 deletion sof-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"type": "module",
"scripts": {
"fmt": "prettier -w ../tests",
"check-fmt": "prettier -c ../tests"
"check-fmt": "prettier -c ../tests",
"validate": "ajv -s ../tests.schema.json -d \"../tests/*.json\""
},
"author": "niquola,jmandel",
"license": "ISC",
Expand Down

0 comments on commit ff90e11

Please sign in to comment.