Skip to content

Commit 164b1ff

Browse files
authored
update node-js action to run on pull-requests
This fixes an issue where PRs form forks were not able to run the tests
1 parent d8d732b commit 164b1ff

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Node CI
22

3-
on: [push]
3+
on: [push, pull_request]
44
jobs:
55
build:
66
runs-on: ${{ matrix.os }}
@@ -11,14 +11,14 @@ jobs:
1111
os: [ubuntu-latest, macos-latest]
1212

1313
steps:
14-
- uses: actions/checkout@v2
15-
- name: Use Node.js 14.x
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: 14.x
19-
- name: npm install, build, and test
20-
run: |
21-
npm install
22-
npm test
23-
env:
24-
CI: true
14+
- uses: actions/checkout@v3
15+
- name: Use Node.js 16.x
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 16.x
19+
- name: npm install, build, and test
20+
run: |
21+
npm install
22+
npm test
23+
env:
24+
CI: true

0 commit comments

Comments
 (0)