Browse Source

Simplify coverage report

pull/979/head
Vitaly Puzrin 1 year ago
parent
commit
2c8922c0a1
  1. 3
      .github/workflows/ci.yml
  2. 4
      package.json

3
.github/workflows/ci.yml

@ -28,9 +28,6 @@ jobs:
- name: Test - name: Test
run: npm test run: npm test
- name: Create coverage report
run: npm run report-coveralls
- name: Upload coverage report to coveralls.io - name: Upload coverage report to coveralls.io
uses: coverallsapp/github-action@master uses: coverallsapp/github-action@master
with: with:

4
package.json

@ -28,9 +28,7 @@
}, },
"scripts": { "scripts": {
"lint": "eslint --ext js --ext mjs .", "lint": "eslint --ext js --ext mjs .",
"test": "npm run lint && c8 mocha && node support/specsplit.mjs", "test": "npm run lint && c8 -r text -r html -r lcov mocha && node support/specsplit.mjs",
"coverage": "npm run test && c8 report --reporter html",
"report-coveralls": "c8 --reporter=lcov mocha",
"doc": "node support/build_doc.mjs", "doc": "node support/build_doc.mjs",
"gh-doc": "npm run doc && gh-pages -d apidoc -f", "gh-doc": "npm run doc && gh-pages -d apidoc -f",
"demo": "npm run lint && node support/build_demo.mjs", "demo": "npm run lint && node support/build_demo.mjs",

Loading…
Cancel
Save