Skip to content

Commit

Permalink
Codecov (#1937)
Browse files Browse the repository at this point in the history
* Add coverage and send to Codecov

* Collect coverage with jest

* Add a badge

* Update package.json

* Update .github/workflows/nodejs.yml

* Add retry logic

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
  • Loading branch information
thomasrockhu and adamwathan committed Oct 25, 2020
1 parent 08b4c72 commit a669180
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ jobs:
- run: npm test
env:
CI: true
- run: bash <(curl -s --retry 5 --retry-delay 2 --connect-timeout 2 https://codecov.io/bash)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<a href="https://www.npmjs.com/package/tailwindcss"><img src="https://img.shields.io/npm/dt/tailwindcss.svg" alt="Total Downloads"></a>
<a href="https://github.com/tailwindcss/tailwindcss/releases"><img src="https://img.shields.io/npm/v/tailwindcss.svg" alt="Latest Release"></a>
<a href="https://github.com/tailwindcss/tailwindcss/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/tailwindcss.svg" alt="License"></a>
<a href="https://codecov.io/gh/tailwindcss/tailwindcss"><img src="https://codecov.io/gh/tailwindcss/tailwindcss/coverage.svg?branch=master" alt="Code Coverage"></a>
</p>

------
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
]
},
"jest": {
"collectCoverage": true,
"testTimeout": 30000,
"setupFilesAfterEnv": [
"<rootDir>/jest/customMatchers.js"
Expand Down

0 comments on commit a669180

Please sign in to comment.