Skip to content

Commit

Permalink
Merge pull request #87 from jwtk/coveralls
Browse files Browse the repository at this point in the history
Use Coveralls Github  Action
  • Loading branch information
oleksandrpravosudko-okta authored Nov 30, 2021
2 parents 72e7460 + 0fc55b2 commit a473c84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ jobs:
node-version: '${{ matrix.node_version }}'
- run: npm install
- run: npm test

- name: Publish to coveralls.io
uses: coverallsapp/[email protected]
with:
github-token: '${{ github.token }}'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"types": "index.d.ts",
"scripts": {
"lint": "eslint .",
"test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly test/ -- -R spec --no-timeouts; cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js; rm -rf ./coverage",
"test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly test/ -- -R spec --no-timeouts",
"test-watch": "mocha --timeout=5000 --reporter dot --check-leaks -w ./*.js test/ ",
"test-debug": "mocha --timeout=5000 --debug --reporter dot --check-leaks -w ./*.js test/ ",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --timeout=5000 --reporter dot --check-leaks test/",
Expand Down

0 comments on commit a473c84

Please sign in to comment.