Skip to content

Commit

Permalink
Port codecov to use Codecov's Github Action dedicated wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
magjac committed Sep 22, 2024
1 parent d6a49de commit 690811c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
file: ./coverage.lcov
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"test": "env TESTRUNNER='c8 --reporter=text mocha' npm run do-test",
"do-test": "mkdir -p http:; ln -nsf .. http://dummyhost; $TESTRUNNER 'test/**/*-test.js' 'test/**/*-test.cjs'",
"report": "c8 report --reporter=lcov",
"coverage": "c8 report --reporter=text-lcov > coverage.lcov && codecov",
"coverage": "c8 report --reporter=text-lcov > coverage.lcov",
"prepublishOnly": "env NODE_ENV=production npm run build && terser build/d3-graphviz.js -c -m -o build/d3-graphviz.min.js",
"prepublishOnlyOriginal": "env NODE_ENV=production npm run build && TESTRUNNER='mocha' npm run do-test && terser build/d3-graphviz.js -c -m -o build/d3-graphviz.min.js",
"publicbuild": "env NODE_ENV=production npm run build",
Expand Down

0 comments on commit 690811c

Please sign in to comment.