Skip to content

Commit d75937f

Browse files
committed
build(test.yml): set node-version to 16
1 parent 30923a8 commit d75937f

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: Test
2-
3-
on:
2+
"on":
43
push:
54
branches:
65
- master
7-
86
pull_request:
97
types:
108
- opened
119
- synchronize
12-
1310
jobs:
1411
test_matrix:
1512
strategy:
@@ -18,11 +15,10 @@ jobs:
1815
- 10
1916
- 12
2017
- 14
21-
# TODO: fix problem with windows, then add "windows-latest" to list of os
22-
os: [ubuntu-latest, macos-latest]
23-
18+
os:
19+
- ubuntu-latest
20+
- macos-latest
2421
runs-on: ${{ matrix.os }}
25-
2622
steps:
2723
- uses: actions/checkout@v2
2824
- name: Use Node.js ${{ matrix.node-version }}
@@ -31,14 +27,13 @@ jobs:
3127
node-version: ${{ matrix.node-version }}
3228
- uses: bahmutov/npm-install@v1
3329
- run: npm run test:ci
34-
35-
# separate job to set as required in branch protection,
36-
# as the build names above change each time Node versions change
3730
test:
3831
runs-on: ubuntu-latest
3932
needs: test_matrix
4033
steps:
4134
- uses: actions/checkout@v2
4235
- uses: actions/setup-node@v2
36+
with:
37+
node-version: 16
4338
- uses: bahmutov/npm-install@v1
4439
- run: npm run lint

0 commit comments

Comments
 (0)