Skip to content

Commit a388922

Browse files
committed
use npm script
1 parent 0f2a163 commit a388922

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Install dependencies
3232
run: npm install
3333
- name: Run tests
34-
run: nyc report --reporter=text-lcov npm run test
34+
run: npm run coverage
3535
- name: Coveralls Parallel
3636
uses: coverallsapp/github-action@master
3737
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "main.js",
66
"scripts": {
77
"test": "mocha -r dotenv/config ./test",
8-
"coverage": "nyc npm run test",
8+
"coverage": "nyc --reporter=text-summary --reporter=text-lcov npm run test",
99
"start": "node -r dotenv/config main.js"
1010
},
1111
"repository": {

0 commit comments

Comments
 (0)