Skip to content

Commit 9edfe15

Browse files
committed
add node verions 18 and 20 to the github workflow config
1 parent 9fef50a commit 9edfe15

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/ci_validation.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [12.x, 14.x, 16.x]
15+
node-version: [16.x, 18.x, 20.x]
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Use Node.js ${{ matrix.node-version }}
@@ -22,19 +22,13 @@ jobs:
2222
- name: Install dependencies
2323
run: npm ci
2424

25-
- name: Build for node 14 and 16
26-
if: matrix.node-version != '12.x'
27-
run: npm run build --if-present
28-
29-
- name: Build for node 12
30-
if: matrix.node-version == '12.x'
31-
run: npm run build:cjs && npm run build:es
25+
- name: Build for node 16, 18 & 20
26+
run: npm run build
3227

3328
- name: Run unit tests
3429
run: npm test
3530

3631
- name: Verify ESM compatibility
37-
if: matrix.node-version == '16.x'
3832
working-directory: './test-esm'
3933
run: |
4034
npm ci

0 commit comments

Comments
 (0)