Skip to content

Commit 63ba6e6

Browse files
authored
infra: Added codecov test coverage (anuraghazra#147)
* chore: test codecov * fix: workflow file * fix: workflow file * chore: added coverage in vercelignore * docs: added codecov badge
1 parent dc3e9a5 commit 63ba6e6

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

Diff for: .github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ jobs:
3434
run: |
3535
npm install
3636
npm run test
37+
38+
- name: Code Coverage
39+
uses: codecov/codecov-action@v1

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.env
33
node_modules
44
package-lock.json
5+
coverage

Diff for: .vercelignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.env
2-
package-lock.json
2+
package-lock.json
3+
coverage

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Dynamically generate stats for your github readmes",
55
"main": "index.js",
66
"scripts": {
7-
"test": "jest",
7+
"test": "jest --coverage",
88
"test:watch": "jest --watch"
99
},
1010
"author": "Anurag Hazra",

Diff for: readme.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
<a href="https://github.com/anuraghazra/github-readme-stats/actions">
99
<img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" />
1010
</a>
11+
<a href="https://codecov.io/gh/anuraghazra/github-readme-stats">
12+
<img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" />
13+
</a>
1114
<a href="https://github.com/anuraghazra/github-readme-stats/issues">
1215
<img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" />
1316
</a>

0 commit comments

Comments
 (0)