-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcodecov.yml
More file actions
183 lines (159 loc) · 3.55 KB
/
codecov.yml
File metadata and controls
183 lines (159 loc) · 3.55 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# Codecov configuration for Terraform PocketID Provider
# https://docs.codecov.com/docs/codecovyml-reference
# Coverage configuration
coverage:
precision: 2
round: down
range: "30...100"
status:
project:
default:
target: auto
threshold: 1%
paths:
- "internal/"
if_not_found: success
if_ci_failed: error
informational: false
only_pulls: false
# Commit status configuration
flags:
- unittests
# Additional status check for overall project health
project-health:
target: 70%
threshold: 5%
paths:
- "internal/"
if_not_found: success
if_ci_failed: error
informational: false
only_pulls: false
# Status check settings
flags:
- unittests
# Component-specific status checks
client:
target: 80%
threshold: 5%
paths:
- "internal/client/**"
if_not_found: success
if_ci_failed: error
informational: false
only_pulls: false
resources:
target: 85%
threshold: 5%
paths:
- "internal/resources/**"
if_not_found: success
if_ci_failed: error
informational: false
only_pulls: false
datasources:
target: 80%
threshold: 5%
paths:
- "internal/datasources/**"
if_not_found: success
if_ci_failed: error
informational: false
only_pulls: false
patch:
default:
target: 80%
threshold: 10%
if_not_found: success
if_ci_failed: error
informational: false
only_pulls: false
# Commit status configuration
flags:
- unittests
# Test analytics configuration
# https://docs.codecov.com/docs/test-analytics
test_analytics:
enabled: true
# Components configuration for modular coverage tracking
# https://docs.codecov.com/docs/components
components:
client:
name: "API Client"
paths:
- "internal/client/**"
datasources:
name: "Data Sources"
paths:
- "internal/datasources/**"
provider:
name: "Provider Core"
paths:
- "internal/provider/**"
resources:
name: "Resources"
paths:
- "internal/resources/**"
models:
name: "Models"
paths:
- "internal/models/**"
# Flags configuration for different test types
flags:
unittests:
paths:
- internal/
carryforward: true
components:
- client
- datasources
- provider
- resources
- models
# Comment configuration
comment:
layout: "reach,diff,flags,tree,betaprofiling"
behavior: default
require_changes: false
require_base: true
require_head: true
show_carryforward_flags: true
show_critical_paths: true
# Test results in PR comments
show_test_results: true
# Ignore certain files/paths
ignore:
- "**/*_test.go"
- "**/testdata/**"
- "examples/**"
- "docs/**"
- "*.md"
- "go.mod"
- "go.sum"
- ".github/**"
- ".gitignore"
- "LICENSE"
- "Makefile"
- ".golangci.yml"
- ".goreleaser.yml"
# Parsers configuration
parsers:
junit:
branch_detection:
conditional: true
loop: true
method: false
macro: false
# GitHub integration
github_checks:
annotations: true
# Status checks configuration
status_checks:
default_rules:
flag_coverage_not_uploaded_behavior: include
carryforward_behavior: include
# Codecov CI settings
codecov:
require_ci_to_pass: true
notify:
wait_for_ci: true