Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 500f1ab

Browse files
committed
ci: created review workflow
1 parent ae58973 commit 500f1ab

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/review.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: review
2+
on: pull_request
3+
4+
jobs:
5+
test:
6+
strategy:
7+
matrix:
8+
platform: [ubuntu-latest, macOS-latest]
9+
node: ['12.x']
10+
name: test/node ${{ matrix.node }}/${{ matrix.platform }}
11+
runs-on: ${{ matrix.platform }}
12+
steps:
13+
- uses: actions/checkout@master
14+
- uses: actions/setup-node@master
15+
with:
16+
node-version: ${{ matrix.node }}
17+
- run: npx yarn bootstrap
18+
- run: npx yarn test
19+
20+
coverage:
21+
needs: [test]
22+
name: coverage
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@master
26+
- uses: actions/setup-node@master
27+
with:
28+
node-version: 12.x
29+
- run: npx yarn bootstrap
30+
- run: npx yarn test --coverage
31+
- uses: romeovs/lcov-reporter-action@v0.2.16
32+
with:
33+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)