Skip to content

Commit 8f6faee

Browse files
authored
Add GitHub actioni to run tests on PR (#180)
1 parent 1487329 commit 8f6faee

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/build.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: '12.x'
19+
- name: Install dependencies
20+
run: npm install
21+
- name: Build
22+
run: npm test
23+
env:
24+
CI: true

0 commit comments

Comments
 (0)