Skip to content

Commit 4f90ce9

Browse files
committed
added github action for testing PRs
1 parent 2804631 commit 4f90ce9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test-pr.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: test-pr
2+
on: [pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
strategy:
9+
matrix:
10+
node-version: [14.x]
11+
12+
steps:
13+
- uses: actions/[email protected]
14+
with:
15+
path: ~/.npm
16+
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
17+
restore-keys: |
18+
${{ runner.os }}-node-
19+
- uses: actions/checkout@v2
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: yarn install
25+
- run: yarn test

0 commit comments

Comments
 (0)