* 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:
Tom Hu 2020-10-25 14:46:32 -04:00 • committed by GitHub
parent 08b4c72708
commit a669180a67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -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)

View file

@ -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>
------

View file

@ -91,6 +91,7 @@
]
},
"jest": {
"collectCoverage": true,
"testTimeout": 30000,
"setupFilesAfterEnv": [
"<rootDir>/jest/customMatchers.js"