-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathcodecov.yml
62 lines (56 loc) · 1.85 KB
/
codecov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# valid this file: curl --data-binary @codecov.yml https://codecov.io/validate
# reference doc: https://docs.codecov.com/docs/common-recipe-list#set-project-coverage-checks-on-a-pull-request
# codecov:
# require_ci_to_pass: false
# notify:
# wait_for_ci: false
# for overall project coverage
coverage:
status:
project:
default:
target: 90%
threshold: 1%
patch:
default:
target: 90%
threshold: 10%
comment:
layout: 'header, diff, components, files' # show component info in the PR comment
require_changes: false # if true: only post the comment if coverage changes
require_base: false # [true :: must have a base report to post]
require_head: true # [true :: must have a head report to post]
hide_project_coverage: true # [true :: only show coverage on the git diff aka patch coverage]]
# reference doc: https://docs.codecov.com/docs/components
component_management:
default_rules: # default rules that will be inherited by all components
statuses:
- type: project
target: 90%
threshold: 1%
- type: patch
target: 90%
threshold: 10%
individual_components:
- component_id: coze-js # this is an identifier that should not be changed
name: coze-js # this is a display name, and can be changed freely
paths:
- packages/coze-js/**
statuses:
- type: project
target: 90%
threshold: 1%
- type: patch
target: 90%
threshold: 10%
- component_id: realtime-api # this is an identifier that should not be changed
name: realtime-api # this is a display name, and can be changed freely
paths:
- packages/realtime-api/**
statuses:
- type: project
target: 90%
threshold: 1%
- type: patch
target: 90%
threshold: 10%