Skip to content

Commit b27fbd4

Browse files
authored
feat(ci): replace nodeunit & nyc for node:test (#150)
* chore(dev-dep): drop nodeunit for node:test * chore(ci): update workflow set node options * test: cleanup unused variables & formatting * chore(lint): add missing semicolon
1 parent 5a20cef commit b27fbd4

50 files changed

Lines changed: 3425 additions & 6524 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,25 @@ permissions:
3131

3232
jobs:
3333
test:
34-
name: NodeJS ${{ matrix.node-version }} on ${{ matrix.os }}
34+
name: NodeJS ${{ matrix.node.version }} on ${{ matrix.os }}
3535
runs-on: ${{ matrix.os }}
36+
3637
strategy:
3738
matrix:
38-
node-version: [20.x, 22.x, 24.x]
39+
node:
40+
- version: 20.x
41+
- version: 22.x
42+
options: --test-coverage-exclude="test/**/*.js"
43+
- version: 24.x
3944
os: [ubuntu-latest, macos-15]
4045

4146
steps:
4247
- uses: actions/checkout@v6
4348

44-
- name: Use Node.js ${{ matrix.node-version }}
49+
- name: Use Node.js ${{ matrix.node.version }}
4550
uses: actions/setup-node@v6
4651
with:
47-
node-version: ${{ matrix.node-version }}
52+
node-version: ${{ matrix.node.version }}
4853

4954
- name: Environment Information
5055
run: |
@@ -71,6 +76,6 @@ jobs:
7176
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238
7277
if: success()
7378
with:
74-
name: ${{ runner.os }} node.js ${{ matrix.node-version }}
79+
name: ${{ runner.os }} node.js ${{ matrix.node.version }}
7580
token: ${{ secrets.CORDOVA_CODECOV_TOKEN }}
7681
fail_ci_if_error: false

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ node_modules/*
2020
npm-debug.log
2121
coverage
2222
.nyc_output
23+
lcov.info

0 commit comments

Comments
 (0)