Skip to content

Commit b0e3f65

Browse files
committedJul 10, 2024··
ci: add node.js to test matrix
1 parent 78b474e commit b0e3f65

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎.github/workflows/ci.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Setup Node.js
1414
uses: actions/setup-node@v3
1515
with:
16-
node-version: 18
16+
node-version: 22
1717

1818
- name: Fetch deps
1919
run: yarn
@@ -48,7 +48,7 @@ jobs:
4848

4949
- uses: actions/setup-node@v3
5050
with:
51-
node-version: 18
51+
node-version: 22
5252
- run: yarn
5353
- name: Unit test only
5454
run: yarn test
@@ -69,7 +69,7 @@ jobs:
6969
strategy:
7070
matrix:
7171
os: [ ubuntu-22.04 ]
72-
node-version: [ 14, 16, 18 ]
72+
node-version: [ 18, 22 ]
7373
name: Test (Node v${{ matrix.node-version }}, OS ${{ matrix.os }})
7474
runs-on: ${{ matrix.os }}
7575
steps:
@@ -85,16 +85,16 @@ jobs:
8585
node-version: ${{ matrix.node-version }}
8686
- run: yarn
8787
- name: Test only
88-
if: matrix.node-version != '18' || matrix.os != 'ubuntu-22.04'
88+
if: matrix.node-version != '22' || matrix.os != 'ubuntu-22.04'
8989
run: yarn test
9090

9191
- name: Test & push coverage
92-
if: matrix.node-version == '18' && matrix.os == 'ubuntu-22.04'
92+
if: matrix.node-version == '22' && matrix.os == 'ubuntu-22.04'
9393
run: yarn test
9494

9595
release:
9696
name: Release
97-
# https://github.community/t/trigger-job-on-tag-push-only/18076
97+
# https://github.community/t/trigger-job-on-tag-push-only/22076
9898
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
9999
needs: test_push
100100
runs-on: ubuntu-22.04
@@ -112,7 +112,7 @@ jobs:
112112

113113
- uses: actions/setup-node@v3
114114
with:
115-
node-version: 18
115+
node-version: 22
116116

117117
- name: Codeclimate
118118
uses: paambaati/codeclimate-action@v5.0.0

0 commit comments

Comments
 (0)
Please sign in to comment.