Skip to content

Commit e98be85

Browse files
huntye1wenming2020
andauthored
chore: update codecov configuration (#39)
Co-authored-by: wenming.2020 <[email protected]>
1 parent 6b2345b commit e98be85

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

codecov.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ coverage:
1111
status:
1212
project:
1313
default:
14-
target: auto
14+
target: 90%
1515
threshold: 1%
1616
patch:
1717
default:
18-
target: auto
19-
threshold: 1%
18+
target: 90%
19+
threshold: 10%
2020

2121
comment:
2222
layout: 'header, diff, components, files' # show component info in the PR comment
@@ -28,26 +28,29 @@ comment:
2828
# reference doc: https://docs.codecov.com/docs/components
2929
component_management:
3030
default_rules: # default rules that will be inherited by all components
31-
statuses:
32-
- type: project # in this case every component that doens't have a status defined will have a project type one
33-
target: auto
34-
threshold: 1%
35-
- type: patch
36-
target: auto
37-
threshold: 1%
31+
flag_coverage_not_uploaded_behavior: exclude # don't send status checks that don't have flag coverage uploaded
3832

3933
individual_components:
4034
- component_id: coze-js # this is an identifier that should not be changed
4135
name: coze-js # this is a display name, and can be changed freely
4236
paths:
4337
- packages/coze-js/**
44-
# set component statuses here
45-
# statuses:
46-
# - type: project
47-
# target: auto
48-
# threshold: 1%
38+
statuses:
39+
- type: project
40+
target: 90%
41+
threshold: 1%
42+
- type: patch
43+
target: 90%
44+
threshold: 10%
4945

5046
- component_id: realtime-api # this is an identifier that should not be changed
5147
name: realtime-api # this is a display name, and can be changed freely
5248
paths:
5349
- packages/realtime-api/**
50+
statuses:
51+
- type: project
52+
target: 90%
53+
threshold: 1%
54+
- type: patch
55+
target: 90%
56+
threshold: 10%

0 commit comments

Comments
 (0)