Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Commit 52affaa

Browse files
committed
add codecov
1 parent fd85cbb commit 52affaa

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/push.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ jobs:
1111
- name: Eslint
1212
run: npm run lint
1313
- name: Jest
14-
run: npm run test
14+
run: npm run test:ci
15+
- name: Codecov
16+
env:
17+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
18+
run:
19+
curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
2-
package-lock.json
2+
package-lock.json
3+
.nyc_output

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"lint": "eslint bin/ src/ tests/",
1111
"fix": "eslint --fix bin/ src/ tests/",
1212
"test": "ava",
13+
"test:ci": "nyc ava",
1314
"docs": "jsdoc2md src/*.js > docs/api.md"
1415
},
1516
"files": [
@@ -40,6 +41,7 @@
4041
"eslint": "^6.8.0",
4142
"eslint-config-airbnb-base": "^14.1.0",
4243
"eslint-plugin-import": "^2.20.1",
43-
"jsdoc-to-markdown": "^5.0.3"
44+
"jsdoc-to-markdown": "^5.0.3",
45+
"nyc": "^15.0.1"
4446
}
4547
}

0 commit comments

Comments
 (0)