Skip to content

Commit f0c16c7

Browse files
committed
Update coverage to work on windows and don't enforce coverage on dev
1 parent 96f62b8 commit f0c16c7

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/schema-tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ jobs:
3434
run: npm run test
3535
env:
3636
BASE: ${{ github.event.pull_request.base.ref }}
37+
38+
- name: Check coverage
39+
if: github.ref != 'refs/heads/dev'
40+
run: npm run check-coverage

package-lock.json

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

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"scripts": {
1616
"build": "bash ./scripts/md2html/build.sh",
1717
"build-src": "npm run validate-markdown && bash ./scripts/md2html/build.sh src && bash ./scripts/schema-publish.sh src",
18-
"test": "c8 --100 vitest run --coverage && nyc check-coverage",
18+
"test": "c8 --100 vitest run --coverage",
19+
"check-coverage": "nyc check-coverage",
1920
"format-markdown": "npx markdownlint-cli2 --config spec.markdownlint.yaml --fix src/oas.md && npx markdownlint-cli2 --fix *.md",
2021
"validate-markdown": "npx markdownlint-cli2 --config spec.markdownlint.yaml src/oas.md && npx markdownlint-cli2 *.md"
2122
},
@@ -27,7 +28,7 @@
2728
"yargs": "^18.0.0"
2829
},
2930
"devDependencies": {
30-
"@hyperjump/json-schema-coverage": "^1.0.1",
31+
"@hyperjump/json-schema-coverage": "^1.0.2",
3132
"c8": "^10.1.3",
3233
"markdownlint-cli2": "^0.18.1",
3334
"nyc": "^17.1.0",

0 commit comments

Comments
 (0)