Skip to content

Commit 1ef992c

Browse files
luwesjessp01
andauthored
chore: use Node matrix with 16.x, 18.x, 20.x (#1688)
Co-authored-by: Jesse Portnoy <[email protected]>
1 parent 8d8b322 commit 1ef992c

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ name: Node.js CI
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
lint:
77
runs-on: ubuntu-latest
88

99
strategy:
1010
matrix:
11-
# node-version: [16.x, 18.x, 20.x]
12-
node-version: [16.x]
11+
node-version: [18.x]
1312

1413
steps:
1514
- uses: actions/checkout@v3
@@ -19,18 +18,14 @@ jobs:
1918
node-version: ${{ matrix.node-version }}
2019
cache: npm
2120
- run: npm ci
22-
- run: npm run build:lib
23-
- run: npm run build:demo
24-
- run: npm run build:dist
25-
- run: npm run build:standalone
21+
- run: npm run lint
2622

27-
lint:
23+
test:
2824
runs-on: ubuntu-latest
2925

3026
strategy:
3127
matrix:
32-
# node-version: [16.x, 18.x, 20.x]
33-
node-version: [16.x]
28+
node-version: [18.x]
3429

3530
steps:
3631
- uses: actions/checkout@v3
@@ -40,15 +35,14 @@ jobs:
4035
node-version: ${{ matrix.node-version }}
4136
cache: npm
4237
- run: npm ci
43-
- run: npm run lint
38+
- run: npm run test:coverage
4439

45-
test:
40+
build:
4641
runs-on: ubuntu-latest
4742

4843
strategy:
4944
matrix:
50-
# node-version: [16.x, 18.x, 20.x]
51-
node-version: [16.x]
45+
node-version: [16.x, 18.x, 20.x]
5246

5347
steps:
5448
- uses: actions/checkout@v3
@@ -58,4 +52,7 @@ jobs:
5852
node-version: ${{ matrix.node-version }}
5953
cache: npm
6054
- run: npm ci
61-
- run: npm run test:coverage
55+
- run: npm run build:lib
56+
- run: npm run build:demo
57+
- run: npm run build:dist
58+
- run: npm run build:standalone

0 commit comments

Comments
 (0)