Skip to content

Commit aea1bf0

Browse files
committed
Use same schema coverage as OpenAPI-Specification
1 parent d1e5b36 commit aea1bf0

File tree

7 files changed

+166
-211
lines changed

7 files changed

+166
-211
lines changed

.github/workflows/schema-tests.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424

2525
- uses: actions/setup-node@v6 # setup Node.js
2626
with:
27-
node-version: "20.x"
27+
node-version: "22.x"
2828

29-
- name: Install dependencies from main
30-
run: |
31-
# git checkout remotes/origin/main -- package.json package-lock.json #TODO: uncomment with subsequent PR
32-
npm ci
29+
- name: Install dependencies
30+
run: npm ci
3331

3432
- name: Run tests
3533
run: npm test
34+
env:
35+
BASE: ${{ github.event.pull_request.base.ref }}

package-lock.json

Lines changed: 136 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"yargs": "^18.0.0"
2222
},
2323
"devDependencies": {
24-
"@hyperjump/json-schema": "^1.9.9",
24+
"@hyperjump/json-schema-coverage": "^1.1.1",
2525
"c8": "^10.1.3",
2626
"markdownlint-cli": "^0.45.0",
2727
"mdv": "^1.3.4",
@@ -41,6 +41,6 @@
4141
"scripts": {
4242
"build": "bash ./scripts/md2html/build.sh",
4343
"format-markdown": "bash ./scripts/format-markdown.sh ./versions/*.md",
44-
"test": "c8 --100 vitest --watch=false && bash scripts/schema-test-coverage.sh"
44+
"test": "c8 --100 vitest run --coverage"
4545
}
4646
}

scripts/schema-test-coverage.mjs

Lines changed: 0 additions & 133 deletions
This file was deleted.

0 commit comments

Comments
 (0)