diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 053b51d..566a674 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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 diff --git a/sof-js/package.json b/sof-js/package.json index dcae61b..8b37528 100644 --- a/sof-js/package.json +++ b/sof-js/package.json @@ -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",