mirror of
https://github.com/zhigang1992/react-native-chat-ui.git
synced 2026-01-12 22:50:15 +08:00
Add codecov
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
#
|
||||
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
|
||||
#
|
||||
version: 2
|
||||
version: 2.1
|
||||
orbs:
|
||||
codecov: codecov/codecov@1.0.5
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
@@ -33,5 +35,10 @@ jobs:
|
||||
- node_modules
|
||||
key: v1-dependencies-{{ checksum "package.json" }}
|
||||
|
||||
- run: yarn run check
|
||||
|
||||
# run tests!
|
||||
- run: yarn test
|
||||
|
||||
- codecov/upload:
|
||||
file: ./coverage/lcov.info
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -68,3 +68,6 @@ lib/
|
||||
|
||||
# Type coverage
|
||||
.type-coverage/
|
||||
|
||||
# Tests coverage
|
||||
coverage/
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# React Native Flyer UI
|
||||
|
||||
[](https://circleci.com/gh/flyerhq/react-native-flyer-ui)
|
||||
[](https://github.com/plantain-00/type-coverage)
|
||||
[](https://codecov.io/gh/flyerhq/react-native-flyer-ui)
|
||||
[](https://github.com/plantain-00/type-coverage)
|
||||
|
||||
17
package.json
17
package.json
@@ -49,7 +49,22 @@
|
||||
"jsx",
|
||||
"json",
|
||||
"node"
|
||||
]
|
||||
],
|
||||
"collectCoverage": true,
|
||||
"collectCoverageFrom": [
|
||||
"src/**/*.{ts,tsx}",
|
||||
"!**/index.{ts,tsx}",
|
||||
"!**/styles.{ts,tsx}",
|
||||
"!**/*.d.ts"
|
||||
],
|
||||
"coverageThreshold": {
|
||||
"global": {
|
||||
"branches": 100,
|
||||
"functions": 100,
|
||||
"lines": 100,
|
||||
"statements": 100
|
||||
}
|
||||
}
|
||||
},
|
||||
"typeCoverage": {
|
||||
"atLeast": 100
|
||||
|
||||
Reference in New Issue
Block a user