diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index 1768112..94bcb30 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -143,8 +143,11 @@ jobs: - name: Test (with coverage on Node >= 24) if: ${{ startsWith(matrix.node-version, '24') }} run: npm run test:cover --ignore-scripts - - name: Test (without coverage on Node < 24) - if: ${{ !startsWith(matrix.node-version, '24') }} + - name: Test (on Node 20 with globbing workaround) + if: ${{ startsWith(matrix.node-version, '20') }} + run: npm run test:node20 --ignore-scripts + - name: Test + if: ${{ !startsWith(matrix.node-version, '24') && !startsWith(matrix.node-version, '20') }} run: npm test --ignore-scripts - name: Conclude Check uses: LouisBrunner/checks-action@v1.6.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b60577a..ecfdefb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,6 +109,9 @@ jobs: - name: Test (with coverage on Node >= 24) if: ${{ startsWith(matrix.node-version, '24') }} run: npm run test:cover --ignore-scripts - - name: Test (without coverage on Node < 24) - if: ${{ !startsWith(matrix.node-version, '24') }} + - name: Test (on Node 20 with globbing workaround) + if: ${{ startsWith(matrix.node-version, '20') }} + run: npm run test:node20 --ignore-scripts + - name: Test + if: ${{ !startsWith(matrix.node-version, '24') && !startsWith(matrix.node-version, '20') }} run: npm test --ignore-scripts diff --git a/package.json b/package.json index d310778..3b95919 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "snap": "node --test --test-update-snapshots './test/**/*.js'", "posttest": "npm run lint", "eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", - "test:cover": "node --test --experimental-test-coverage --test-timeout=3000 --test-coverage-lines=100 --test-coverage-functions=100 --test-coverage-branches=100 './test/**/*.js'" + "test:cover": "node --test --experimental-test-coverage --test-timeout=3000 --test-coverage-lines=100 --test-coverage-functions=100 --test-coverage-branches=100 './test/**/*.js'", + "test:node20": "node --test test" }, "repository": { "type": "git", @@ -22,7 +23,7 @@ "license": "ISC", "devDependencies": { "@npmcli/eslint-config": "^6.0.0", - "@npmcli/template-oss": "4.27.1" + "@npmcli/template-oss": "4.28.0" }, "files": [ "bin/", @@ -33,7 +34,7 @@ }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "version": "4.27.1", + "version": "4.28.0", "publish": true, "testRunner": "node:test", "latestCiVersion": 24