Skip to content

Commit 40896fe

Browse files
committed
add git actions
1 parent 62d84f8 commit 40896fe

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/run_test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Node.js CI
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: macos-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [12.x]
15+
16+
steps:
17+
- name: Clone and checkout branch
18+
uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- name: Install dependencies
24+
run: npm install
25+
- run: npm run build --if-present
26+
- name: Run the test
27+
run: npm test
28+
env:
29+
CI: true

0 commit comments

Comments
 (0)