infra: Added codecov test coverage (#147)

* chore: test codecov

* fix: workflow file

* fix: workflow file

* chore: added coverage in vercelignore

* docs: added codecov badge
This commit is contained in:
Anurag Hazra 2020-07-22 23:26:10 +05:30 committed by GitHub
parent dc3e9a59f2
commit 63ba6e6601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 2 deletions

View File

@ -34,3 +34,6 @@ jobs:
run: |
npm install
npm run test
- name: Code Coverage
uses: codecov/codecov-action@v1

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
.env
node_modules
package-lock.json
coverage

View File

@ -1,2 +1,3 @@
.env
package-lock.json
coverage

View File

@ -4,7 +4,7 @@
"description": "Dynamically generate stats for your github readmes",
"main": "index.js",
"scripts": {
"test": "jest",
"test": "jest --coverage",
"test:watch": "jest --watch"
},
"author": "Anurag Hazra",

View File

@ -8,6 +8,9 @@
<a href="https://github.com/anuraghazra/github-readme-stats/actions">
<img alt="Tests Passing" src="https://github.com/anuraghazra/github-readme-stats/workflows/Test/badge.svg" />
</a>
<a href="https://codecov.io/gh/anuraghazra/github-readme-stats">
<img src="https://codecov.io/gh/anuraghazra/github-readme-stats/branch/master/graph/badge.svg" />
</a>
<a href="https://github.com/anuraghazra/github-readme-stats/issues">
<img alt="Issues" src="https://img.shields.io/github/issues/anuraghazra/github-readme-stats?color=0088ff" />
</a>