diff --git a/.github/workflows/CI-CD.yaml b/.github/workflows/CI-CD.yaml index ab66bc20..91d239bd 100644 --- a/.github/workflows/CI-CD.yaml +++ b/.github/workflows/CI-CD.yaml @@ -22,8 +22,7 @@ jobs: - macos-latest - windows-latest node: - - 16 - # - 18 TODO bring this back + - 20 steps: - name: Checkout source @@ -71,7 +70,7 @@ jobs: - name: Install Node uses: actions/setup-node@v4 with: - node-version: lts + node-version: 20 cache: "npm" - name: Install dependencies @@ -122,7 +121,7 @@ jobs: - name: Install Node uses: actions/setup-node@v4 with: - node-version: lts + node-version: 20 cache: "npm" - name: Install dependencies diff --git a/package.json b/package.json index ebab3638..ba482929 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "test:browser": "karma start --single-run", "test:typescript": "tsc --noEmit --strict --lib esnext,dom test/specs/typescript-definition.spec.ts", "coverage": "npm run coverage:node && npm run coverage:browser", - "coverage:node": "nyc node_modules/mocha/bin/mocha", + "coverage:node": "QUICK_TEST=true nyc mocha", "coverage:browser": "npm run test:browser -- --coverage", "upgrade": "npm-check -u && npm audit fix", "bump": "bump --tag --push --all", diff --git a/test/specs/real-world/real-world.spec.js b/test/specs/real-world/real-world.spec.js index 7b780265..bd7b8bb2 100644 --- a/test/specs/real-world/real-world.spec.js +++ b/test/specs/real-world/real-world.spec.js @@ -6,7 +6,7 @@ const knownErrors = require("./known-errors"); const fetchApiList = require("./fetch-api-list"); // How many APIs to test in "quick mode" and normal mode -const MAX_APIS_TO_TEST = (host.node && process.argv.includes("--quick-test")) ? 10 : 1000; +const MAX_APIS_TO_TEST = (host.node && process.argv.includes("--quick-test") || process.env.QUICK_TEST) ? 10 : 1000; const START_AT_INDEX = 0; const MAX_DOWNLOAD_RETRIES = 3;