Skip to content

Commit b569df9

Browse files
committed
Add Github Action to run tests
1 parent 4255c3e commit b569df9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/test.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Node.js CI
2+
on:
3+
push:
4+
branches: [ v3, v4 ]
5+
pull_request:
6+
branches: [ v3, v4 ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [10.x, 12.x, 14.x, 15.x]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- run: yarn --frozen-lockfile
20+
- run: yarn build
21+
- run: yarn test

0 commit comments

Comments
 (0)