Skip to content

Commit 6325dec

Browse files
authored
Merge pull request #181 from ralfhandl/main-schema-test-coverage
main: use schema test coverage provided by @hyperjump/json-schema-coverage
2 parents b8008ce + 396d288 commit 6325dec

File tree

7 files changed

+178
-222
lines changed

7 files changed

+178
-222
lines changed

.github/workflows/schema-tests.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
with:
2727
node-version: "20.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)