Skip to content

Commit c22b997

Browse files
committed
build(test.yml): set node-version to 16
1 parent fd0da47 commit c22b997

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
name: Test
2-
on:
2+
"on":
33
push: {}
44
pull_request:
5-
types: [opened, synchronize]
6-
5+
types:
6+
- opened
7+
- synchronize
78
jobs:
89
integration:
910
runs-on: ubuntu-latest
10-
# don't run integration tests on push unless it's the main branch
1111
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main'
1212
steps:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-node@v2
1515
with:
1616
cache: npm
17+
node-version: 16
1718
- run: npm ci
1819
- run: npm test
1920
createComment:
2021
runs-on: ubuntu-latest
21-
# only run on push events
2222
if: github.event_name == 'push'
2323
steps:
2424
- uses: actions/checkout@v2
2525
- uses: actions/setup-node@v2
2626
with:
2727
cache: npm
28+
node-version: 16
2829
- run: npm ci
2930
- run: node test/fixtures/app.js
3031
env:

0 commit comments

Comments
 (0)