ci(codecov): upload coverage results for shared (#4431)

* ci(codecov): upload coverage results for shared

* set targets for each upload
This commit is contained in:
Iain Sproat
2025-04-29 10:14:47 +01:00
committed by GitHub
parent 41800d90f2
commit d4e326e89e
3 changed files with 40 additions and 1 deletions
+4 -1
View File
@@ -786,9 +786,12 @@ jobs:
- run:
name: Run tests
command: yarn test:single-run
command: yarn test:ci
working_directory: 'packages/shared'
- codecov/upload:
files: packages/shared/coverage/coverage-final.json
- run:
name: Build
command: yarn build
+35
View File
@@ -2,3 +2,38 @@ codecov:
notify:
notify_error: true
require_ci_to_pass: false
coverage:
status:
project:
default:
target: 90% #overall project/ repo coverage
server:
target: 70%
flags:
- server
shared:
target: 70%
flags:
- shared
patch:
default:
target: 90% #overall project/ repo coverage
server:
target: 90%
flags:
- server
shared:
target: 100%
flags:
- shared
flags:
server:
paths:
- packages/server/coverage/lcov.info
carryforward: false
shared:
paths:
- packages/shared/coverage/coverage-final.json
carryforward: false
+1
View File
@@ -21,6 +21,7 @@
"lint:ci": "yarn lint:tsc",
"test": "vitest",
"test:ui": "vitest --ui",
"test:ci": "vitest --run --coverage",
"test:coverage": "vitest --coverage",
"test:single-run": "vitest run"
},