Skip to content

Commit f8088e2

Browse files
committed
ci: add github actions integration
1 parent 3b16c68 commit f8088e2

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test
2+
3+
on: [push]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [14, 15]
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Use Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- name: install and lint
18+
run: |
19+
yarn install
20+
yarn lint:fail
21+
22+
test:
23+
needs: [lint]
24+
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
node-version: [14, 15]
28+
steps:
29+
- uses: actions/checkout@v1
30+
- name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v1
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
- name: install and test
35+
run: |
36+
yarn install
37+
yarn jest --coverage
38+
- name: upload coverage
39+
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)