Skip to content

Commit 739717d

Browse files
adding codecov
1 parent 300904a commit 739717d

File tree

4 files changed

+1148
-143
lines changed

4 files changed

+1148
-143
lines changed

.github/workflows/codecov.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Running Code Coverage
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [12.x, 13.x, 14.x, 15.x]
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 2
18+
19+
- name: Set up Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Run tests
28+
run: npm run test
29+
30+
- name: Upload coverage to Codecov
31+
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)