Skip to content

Commit 20544a4

Browse files
authoredMar 8, 2021
build: attempt to fix codecov reporting (#281)
1 parent 8544a6f commit 20544a4

File tree

3 files changed

+95
-1
lines changed

3 files changed

+95
-1
lines changed
 

‎.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
2929
- run: npm ci
3030
- run: npm test
31-
- uses: codecov/codecov-action@v1
31+
- run: npm run codecov
3232
if: matrix.node == env.NODE
3333
windows:
3434
runs-on: windows-latest

‎package-lock.json

+92
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"scripts": {
1414
"pretest": "npm run compile",
1515
"prepare": "npm run compile",
16+
"codecov": "c8 report --reporter=json && codecov -f coverage/*.json",
1617
"compile": "tsc -p .",
1718
"test": "c8 mocha build/test",
1819
"fix": "gts fix",
@@ -48,6 +49,7 @@
4849
"@types/update-notifier": "^5.0.0",
4950
"c8": "^7.0.0",
5051
"chai": "^4.2.0",
52+
"codecov": "^3.8.1",
5153
"execa": "^5.0.0",
5254
"gts": "^3.0.0",
5355
"mocha": "^8.0.0",

0 commit comments

Comments
 (0)
Please sign in to comment.