diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index d347a45d..3dcd13a5 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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: diff --git a/package.json b/package.json index 352dc057..fc03263c 100644 --- a/package.json +++ b/package.json @@ -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",