Skip to content

Commit 39e62ff

Browse files
committed
Add github action to test code targeted to main branch
1 parent e45d4f6 commit 39e62ff

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Test code on pull request
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
test_pull_request:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
- run: npm ci
16+
- run: npm test
17+
- run: npm run build

0 commit comments

Comments
 (0)