Skip to content

Commit

Permalink
Merge pull request #66 from XhmikosR/c8
Browse files Browse the repository at this point in the history
Switch to c8 for coverage
  • Loading branch information
bcomnes authored Oct 13, 2021
2 parents 31f902b + 67e327a commit 96363d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
node-version: ${{ matrix.node }}
- run: npm i
- run: npm test
- run: npm run lcov
- uses: codecov/codecov-action@v2.1.0
if: ${{ github.event_name == 'pull_request' }}
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/.nyc_output
/coverage
/jsdoc
/node_modules
Expand Down
16 changes: 11 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@
},
"scripts": {
"_mocha": "mocha \"test/*.js\" --timeout 120000",
"clean": "rimraf .nyc_output coverage jsdoc \"test-workspace/{build,test.txt}\"",
"clean": "rimraf coverage jsdoc \"test-workspace/{build,test.txt}\"",
"docs": "jsdoc -c jsdoc.json",
"lint": "eslint bin lib scripts test \"test-workspace/tasks/*.js\"",
"pretest": "node scripts/make-slink.js && npm run lint",
"test": "nyc npm run _mocha",
"test": "c8 npm run _mocha",
"watch": "npm run _mocha -- --watch --growl",
"lcov": "nyc report -r lcovonly",
"version": "auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md",
"preversion": "npm test",
"postversion": "git push --follow-tags && gh-release -y"
Expand All @@ -40,13 +39,13 @@
},
"devDependencies": {
"auto-changelog": "^2.2.0",
"c8": "^7.9.0",
"eslint": "^4.19.1",
"eslint-config-mysticatea": "^13.0.2",
"fs-extra": "^10.0.0",
"gh-release": "^6.0.0",
"jsdoc": "^3.6.6",
"mocha": "^9.0.0",
"nyc": "^15.1.0",
"p-queue": "^6.6.1",
"rimraf": "^3.0.2",
"yarn": "^1.12.3"
Expand Down Expand Up @@ -76,5 +75,12 @@
"bugs": {
"url": "https://github.com/bcomnes/npm-run-all2/issues"
},
"homepage": "https://github.com/bcomnes/npm-run-all2"
"homepage": "https://github.com/bcomnes/npm-run-all2",
"c8": {
"reporter": [
"html",
"lcovonly",
"text"
]
}
}

0 comments on commit 96363d7

Please sign in to comment.