Skip to content

Commit ea15d6a

Browse files
committedMay 23, 2020
chore: import Action flow
1 parent 1e0bac5 commit ea15d6a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
 

‎.github/workflows/ci.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
name: Node.js v${{ matrix.nodejs }}
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
nodejs: [6, 8, 10, 12]
12+
steps:
13+
- uses: actions/checkout@master
14+
with:
15+
fetch-depth: 1
16+
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.nodejs }}
20+
21+
- name: Install
22+
run: |
23+
npm install
24+
npm install -g nyc
25+
26+
- name: Test w/ Coverage
27+
run: nyc --include=packages npm test
28+
29+
- name: Report
30+
if: matrix.nodejs >= 12
31+
run: |
32+
nyc report --reporter=text-lcov > coverage.lcov
33+
bash <(curl -s https://codecov.io/bash)
34+
env:
35+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.