Codecov (#1937)
* 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>
This commit is contained in:
parent
08b4c72708
commit
a669180a67
3 changed files with 3 additions and 0 deletions
1
.github/workflows/nodejs.yml
vendored
1
.github/workflows/nodejs.yml
vendored
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
------
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@
|
|||
]
|
||||
},
|
||||
"jest": {
|
||||
"collectCoverage": true,
|
||||
"testTimeout": 30000,
|
||||
"setupFilesAfterEnv": [
|
||||
"<rootDir>/jest/customMatchers.js"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue