Skip to content

Commit

Permalink
Add coverage with c8
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Jan 12, 2022
1 parent be8e5c2 commit ab3a2dd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
run: npm install

- name: Run tests
run: npm test
run: npm run ci
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
yarn.lock
/coverage
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"ava": "ava",
"xo": "xo",
"ci": "npm run xo && c8 ava",
"test": "npm run xo && npm run ava"
},
"main": "index.js",
Expand All @@ -31,6 +32,12 @@
"local",
"wrapper"
],
"c8": {
"reporter": [
"lcovonly",
"text"
]
},
"dependencies": {
"bin-check": "^4.1.0",
"bin-version-check": "^5.0.0",
Expand All @@ -39,6 +46,7 @@
},
"devDependencies": {
"ava": "^4.0.1",
"c8": "^7.11.0",
"executable": "^4.1.1",
"nock": "^13.2.2",
"path-exists": "^5.0.0",
Expand Down

0 comments on commit ab3a2dd

Please sign in to comment.