Skip to content

Commit d10b109

Browse files
committed
fix: ci and coverage
1 parent 447f9ad commit d10b109

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/CI-CD.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ jobs:
2222
- macos-latest
2323
- windows-latest
2424
node:
25-
- 16
26-
# - 18 TODO bring this back
25+
- 20
2726

2827
steps:
2928
- name: Checkout source
@@ -71,7 +70,7 @@ jobs:
7170
- name: Install Node
7271
uses: actions/setup-node@v4
7372
with:
74-
node-version: lts
73+
node-version: 20
7574
cache: "npm"
7675

7776
- name: Install dependencies
@@ -122,7 +121,7 @@ jobs:
122121
- name: Install Node
123122
uses: actions/setup-node@v4
124123
with:
125-
node-version: lts
124+
node-version: 20
126125
cache: "npm"
127126

128127
- name: Install dependencies

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"test:browser": "karma start --single-run",
4747
"test:typescript": "tsc --noEmit --strict --lib esnext,dom test/specs/typescript-definition.spec.ts",
4848
"coverage": "npm run coverage:node && npm run coverage:browser",
49-
"coverage:node": "nyc node_modules/mocha/bin/mocha",
49+
"coverage:node": "QUICK_TEST=true nyc mocha",
5050
"coverage:browser": "npm run test:browser -- --coverage",
5151
"upgrade": "npm-check -u && npm audit fix",
5252
"bump": "bump --tag --push --all",

test/specs/real-world/real-world.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const knownErrors = require("./known-errors");
66
const fetchApiList = require("./fetch-api-list");
77

88
// How many APIs to test in "quick mode" and normal mode
9-
const MAX_APIS_TO_TEST = (host.node && process.argv.includes("--quick-test")) ? 10 : 1000;
9+
const MAX_APIS_TO_TEST = (host.node && process.argv.includes("--quick-test") || process.env.QUICK_TEST) ? 10 : 1000;
1010
const START_AT_INDEX = 0;
1111
const MAX_DOWNLOAD_RETRIES = 3;
1212

0 commit comments

Comments
 (0)