diff --git a/.github/workflows/test-node21.yml b/.github/workflows/test-node21.yml new file mode 100644 index 0000000..2ec8654 --- /dev/null +++ b/.github/workflows/test-node21.yml @@ -0,0 +1,25 @@ +name: Node Test + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [21.x] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - name: npm test + run: | + npm ci + npm run test:node21 + env: + CI: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7e25cc..7ba7818 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x, 21.x] + node-version: [18.x, 20.x] steps: - uses: actions/checkout@v4 diff --git a/package-lock.json b/package-lock.json index b076690..94dcd18 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1061,11 +1061,11 @@ } }, "node_modules/@hckrnews/mutator": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@hckrnews/mutator/-/mutator-0.3.2.tgz", - "integrity": "sha512-Dso+VPPN2KFqzQwtZ+mqm7nEfWYqkl4FREKxI9+I/x0oGxiiydHdBCTZM1yqTQPsPzL2ZzxkKpsGsNwPbcjoBA==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@hckrnews/mutator/-/mutator-0.3.3.tgz", + "integrity": "sha512-mzm4toPJBdM0SBb6suwe1GCHw/LA4lJYKCHrKwwqxbdMp7k9j5qmGwDsh2uofrUuui+tGlZ2ETes55Sro9/9ZA==", "engines": { - "node": ">= 14" + "node": ">= 18" } }, "node_modules/@hckrnews/objects": { diff --git a/package.json b/package.json index d9dae63..5c4229f 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "lint": "eslint src/*.js --config .eslintrc", "lint:report": "eslint src/*.js --config .eslintrc -f json -o report.json", "lint:fix": "eslint src/*.js --config .eslintrc --fix", - "test": "c8 node --test src/**/*.js", + "test": "c8 node --test src/", + "test:node21": "c8 node --test 'src/**/*.js'", "cpd": "node_modules/jscpd/bin/jscpd src", "vulnerabilities": "npm audit --omit=dev" },