Skip to content

Commit 2602e57

Browse files
committed
Fix npm coverage scripts
1 parent b6c56d6 commit 2602e57

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ jobs:
2323
- run: npm ci
2424
- run: npm test
2525
- run: npm run codeclimate
26+
env:
27+
CODECLIMATE_REPO_TOKEN: ${{ secrets.CODECLIMATE_REPO_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
"quick": "mocha --no-timeouts --fgrep 'Request Validation' --invert",
5353
"pretest": "standard && echint",
5454
"test": "mocha --no-timeouts",
55-
"posttest": "exit 0 && npm run coverage",
55+
"posttest": "npm run coverage",
5656
"coverage": "istanbul cover --dir coverage _mocha -- --fgrep 'Request Validation' --invert -R dot",
57-
"codeclimate": "codeclimate < coverage/lcov.info"
57+
"codeclimate": "codeclimate-test-reporter < coverage/lcov.info"
5858
},
5959
"standard": {
6060
"env": "mocha",

0 commit comments

Comments
 (0)