chore: 尝试修复 codecov 不生效问题 (#7207)

This commit is contained in:
吴多益 2023-06-16 21:46:02 +08:00 committed by GitHub
parent 167e2b6b79
commit d7675012e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 1 deletions

View File

@ -48,7 +48,6 @@ jobs:
npm run coverage npm run coverage
- uses: codecov/codecov-action@v3 - uses: codecov/codecov-action@v3
with: with:
token: ${{ secrets.CODECOV_TOKEN }}
name: codecov-umbrella # optional name: codecov-umbrella # optional
fail_ci_if_error: false # optional (default = false) fail_ci_if_error: false # optional (default = false)
verbose: true # optional (default = false) verbose: true # optional (default = false)

View File

@ -94,6 +94,11 @@
"jest": { "jest": {
"verbose": true, "verbose": true,
"testEnvironment": "jsdom", "testEnvironment": "jsdom",
"collectCoverage": true,
"coverageReporters": [
"text",
"cobertura"
],
"collectCoverageFrom": [ "collectCoverageFrom": [
"packages/*/src/**/*" "packages/*/src/**/*"
], ],

View File

@ -69,6 +69,11 @@
}, },
"jest": { "jest": {
"testEnvironment": "jsdom", "testEnvironment": "jsdom",
"collectCoverage": true,
"coverageReporters": [
"text",
"cobertura"
],
"collectCoverageFrom": [ "collectCoverageFrom": [
"src/**/*" "src/**/*"
], ],

View File

@ -81,6 +81,11 @@
"browserslist": "IE >= 11", "browserslist": "IE >= 11",
"jest": { "jest": {
"testEnvironment": "jsdom", "testEnvironment": "jsdom",
"collectCoverage": true,
"coverageReporters": [
"text",
"cobertura"
],
"collectCoverageFrom": [ "collectCoverageFrom": [
"src/**/*" "src/**/*"
], ],

View File

@ -108,6 +108,11 @@
}, },
"jest": { "jest": {
"testEnvironment": "jsdom", "testEnvironment": "jsdom",
"collectCoverage": true,
"coverageReporters": [
"text",
"cobertura"
],
"collectCoverageFrom": [ "collectCoverageFrom": [
"src/**/*" "src/**/*"
], ],

View File

@ -192,6 +192,11 @@
}, },
"jest": { "jest": {
"testEnvironment": "jsdom", "testEnvironment": "jsdom",
"collectCoverage": true,
"coverageReporters": [
"text",
"cobertura"
],
"collectCoverageFrom": [ "collectCoverageFrom": [
"src/**/*" "src/**/*"
], ],

View File

@ -65,6 +65,11 @@
}, },
"jest": { "jest": {
"testEnvironment": "jsdom", "testEnvironment": "jsdom",
"collectCoverage": true,
"coverageReporters": [
"text",
"cobertura"
],
"collectCoverageFrom": [ "collectCoverageFrom": [
"src/**/*" "src/**/*"
], ],