Skip to content

Commit 0bcc455

Browse files
committed
chore(workflow): update CI test matrix & use macos-26
1 parent 1edf705 commit 0bcc455

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,20 @@ 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 }}
3636

3737
strategy:
3838
matrix:
39-
node:
40-
- version: 20.x
41-
- version: 22.x
42-
options: --test-coverage-exclude="test/**/*.js"
43-
- version: 24.x
44-
os: [ubuntu-latest, macos-15]
39+
node-version: [20.x, 22.x, 24.x]
40+
os: [ubuntu-latest, macos-26]
41+
node-options: --test-coverage-exclude="test/**/*.js" # shared default node options
42+
43+
include:
44+
# Override default node options for node 20.x
45+
# The "--test-coverage-exclude" flag does not exist in node 20.x.
46+
- node-version: 20.x
47+
node-options: ''
4548

4649
steps:
4750
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -51,7 +54,7 @@ jobs:
5154

5255
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
5356
with:
54-
node-version: ${{ matrix.node.version }}
57+
node-version: ${{ matrix.node-version }}
5558

5659
- name: Environment Information
5760
run: |
@@ -71,12 +74,13 @@ jobs:
7174
run: npm cit
7275
env:
7376
CI: true
77+
NODE_OPTIONS: ${{ matrix.node-options }}
7478

7579
- uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
7680

7781
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
7882
if: success()
7983
with:
80-
name: ${{ runner.os }} node.js ${{ matrix.node.version }}
84+
name: ${{ runner.os }} node.js ${{ matrix.node-version }}
8185
token: ${{ secrets.CORDOVA_CODECOV_TOKEN }}
8286
fail_ci_if_error: false

0 commit comments

Comments
 (0)