Skip to content

Commit 6b0f0a5

Browse files
authored
Merge pull request #7 from js07/github-action-run-jest-on-pr
GitHub Action to run jest on PRs
2 parents eefc907 + b52e6bf commit 6b0f0a5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Pull Request Checks
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
7+
jobs:
8+
test:
9+
name: Run Tests
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js 14.x
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: 14.x
19+
cache: 'npm'
20+
- run: npm ci
21+
- run: npm run build --if-present
22+
- run: npm test

0 commit comments

Comments
 (0)