Skip to content

Commit fea3322

Browse files
committedDec 9, 2022
update CI workflow
1 parent a63ce28 commit fea3322

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed
 

‎.github/workflows/ci.yml

+16-14
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
node-version: [12.x, 14.x, 16.x, 18.x]
9+
node-version: [14.x, 16.x, 18.x, 19.x]
1010
platform:
11-
- os: ubuntu-latest
12-
shell: bash
13-
- os: macos-latest
14-
shell: bash
15-
- os: windows-latest
16-
shell: bash
17-
- os: windows-latest
18-
shell: powershell
11+
- os: ubuntu-latest
12+
shell: bash
13+
- os: macos-latest
14+
shell: bash
15+
- os: windows-latest
16+
shell: bash
17+
- os: windows-latest
18+
shell: powershell
1919
fail-fast: false
2020

2121
runs-on: ${{ matrix.platform.os }}
@@ -25,10 +25,12 @@ jobs:
2525

2626
steps:
2727
- name: Checkout Repository
28-
uses: actions/checkout@v1.1.0
28+
if: ${{ (matrix.node-version == '16.x') || (matrix.node-version == '18.x') || (matrix.node-version == '19.x') || (matrix.platform.os != 'windows-latest') }}
29+
uses: actions/checkout@v3
2930

3031
- name: Use Nodejs ${{ matrix.node-version }}
31-
uses: actions/setup-node@v1
32+
if: ${{ (matrix.node-version == '16.x') || (matrix.node-version == '18.x') || (matrix.node-version == '19.x') || (matrix.platform.os != 'windows-latest') }}
33+
uses: actions/setup-node@v3
3234
with:
3335
node-version: ${{ matrix.node-version }}
3436

@@ -37,13 +39,13 @@ jobs:
3739

3840
# skip tests on node <16 on Windows, because npm install npm -g fails
3941
- name: Use latest npm
40-
if: ${{ (matrix.node-version != '16.x') && (matrix.node-version != '17.x') && (matrix.platform.os != 'windows-latest') }}
42+
if: ${{ (matrix.node-version == '16.x') || (matrix.node-version == '18.x') || (matrix.node-version == '19.x') || (matrix.platform.os != 'windows-latest') }}
4143
run: npm i -g npm@latest
4244

4345
- name: Install dependencies
44-
if: ${{ (matrix.node-version == '16.x') || (matrix.node-version == '17.x') || (matrix.platform.os != 'windows-latest') }}
46+
if: ${{ (matrix.node-version == '16.x') || (matrix.node-version == '18.x') || (matrix.node-version == '19.x') || (matrix.platform.os != 'windows-latest') }}
4547
run: npm install
4648

4749
- name: Run Tests
48-
if: ${{ (matrix.node-version == '16.x') || (matrix.node-version == '17.x') || (matrix.platform.os != 'windows-latest') }}
50+
if: ${{ (matrix.node-version == '16.x') || (matrix.node-version == '18.x') || (matrix.node-version == '19.x') || (matrix.platform.os != 'windows-latest') }}
4951
run: npm test -- -c -t0

0 commit comments

Comments
 (0)
Please sign in to comment.