Skip to content

Commit 7e96b13

Browse files
committedOct 20, 2019
Run workflow on push and pull_request.
Format YAML with prettier.
1 parent 8441bcc commit 7e96b13

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed
 

‎.github/workflows/nodejs.yml

+13-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
name: Node CI
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
98

109
strategy:
1110
matrix:
1211
node-version: [8.x, 10.x, 12.x]
1312

1413
steps:
15-
- uses: actions/checkout@v1
16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
18-
with:
19-
node-version: ${{ matrix.node-version }}
20-
- name: npm install, build, and test
21-
run: |
22-
npm install
23-
npm run build --if-present
24-
npm test
25-
env:
26-
CI: true
14+
- uses: actions/checkout@v1
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: npm install, build, and test
20+
run: |
21+
npm install
22+
npm run build --if-present
23+
npm test
24+
env:
25+
CI: true

0 commit comments

Comments
 (0)
Please sign in to comment.