Skip to content

Commit 20f4206

Browse files
authored
[GH actions] Test on pull requests (#5)
* created pr-test.yml
1 parent fa66e58 commit 20f4206

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pr-test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: PR test
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
node-version: 12
15+
registry-url: https://registry.npmjs.org/
16+
17+
- name: Install dependencies
18+
run: yarn install
19+
20+
- name: Run tests
21+
run: yarn test

0 commit comments

Comments
 (0)