Skip to content

Commit b8630d2

Browse files
committed
adding codecov
1 parent b069235 commit b8630d2

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.github/workflows/node.js.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
uses: actions/setup-node@v1
2626
with:
2727
node-version: ${{ matrix.node-version }}
28-
- run: npm i -g yarn
28+
- run: npm i -g yarn codecov
2929
- run: yarn install
3030
- run: yarn test
31+
- run: codecov

codecov.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: 80% # the required coverage value
6+
threshold: 1% # the leniency in hitting the target
7+
patch:
8+
default:
9+
informational: true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"scripts": {
1212
"build": "tsc -p .",
1313
"lint": "eslint . --ext .ts",
14+
"report": "nyc --reporter=text-lcov npm test > coverage.lcov",
1415
"test": "NODE_ENV=test nyc mocha -r ts-node/register \"src/**/*.spec.ts\" --exit"
1516
},
1617
"devDependencies": {

0 commit comments

Comments
 (0)