-
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathcodecov.yml
More file actions
249 lines (212 loc) · 4.55 KB
/
codecov.yml
File metadata and controls
249 lines (212 loc) · 4.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
# Codecov configuration
# Documentation: https://docs.codecov.com/docs/codecov-yaml
codecov:
max_report_age: off
# Coverage configuration
coverage:
# Precision for coverage percentages (2 decimals)
precision: 2
# Round coverage to nearest value
round: down
# Coverage range (red to green)
range: 80..100
# Status checks configuration
status:
# Project-level coverage
project:
default:
# Require coverage for project
target: 80%
# Allow 0.5% drop in coverage
threshold: 0.5%
# Base branch for comparison
base: auto
# Only check changed files
only_pulls: false
# Informational mode (won't block PR)
informational: false
# Coverage must increase or stay same
if_ci_failed: error
# Per-package coverage targets
lib:
target: 80%
threshold: 0.5%
flags:
- lib
paths:
- packages/lib/
utils:
target: 90%
threshold: 0.5%
flags:
- utils
paths:
- packages/utils/
mcp:
target: 90%
threshold: 0.5%
flags:
- mcp
paths:
- packages/mcp/
icons:
target: 70%
threshold: 1%
flags:
- icons
paths:
- packages/icons/
translations:
target: 90%
threshold: 1%
flags:
- translations
paths:
- packages/translations/
node:
target: 90%
threshold: 0.5%
flags:
- node
paths:
- packages/node/
nuxt:
target: 90%
threshold: 1%
flags:
- nuxt
paths:
- packages/nuxt/
themes:
target: 90%
threshold: 1%
flags:
- themes
paths:
- packages/themes/
maz-cli:
target: 70%
threshold: 1%
flags:
- maz-cli
paths:
- packages/maz-cli/
# Patch-level coverage (new code in PR)
patch:
default:
# New code should have at least 70% coverage
target: 80%
# Allow 5% variance for new code
threshold: 1%
# Only check on pull requests
only_pulls: true
# Make it informational for now
informational: false
# Comment configuration
comment:
# Behavior for PR comments
layout: 'header, diff, flags, components, footer'
behavior: default
require_changes: false
require_base: false
require_head: true
# Show coverage for these sections
after_n_builds: 1
# GitHub integration
github_checks:
annotations: true
# Flags for different packages
flags:
lib:
paths:
- packages/lib/
carryforward: false
utils:
paths:
- packages/utils/
carryforward: false
mcp:
paths:
- packages/mcp/
carryforward: false
icons:
paths:
- packages/icons/
carryforward: false
translations:
paths:
- packages/translations/
carryforward: false
node:
paths:
- packages/node/
carryforward: false
nuxt:
paths:
- packages/nuxt/
carryforward: false
themes:
paths:
- packages/themes/
carryforward: false
maz-cli:
paths:
- packages/maz-cli/
carryforward: false
# Ignore paths
ignore:
- '**/*.test.ts'
- '**/*.test.js'
- '**/*.spec.ts'
- '**/*.spec.js'
- '**/tests/**'
- '**/test/**'
- '**/__tests__/**'
- '**/node_modules/**'
- '**/dist/**'
- '**/build/**'
- '**/.next/**'
- '**/coverage/**'
- '**/*.d.ts'
- '**/types/**'
- '**/index.ts'
- 'packages/lib/src/tailwindcss/**'
# Component management (for monorepo)
component_management:
individual_components:
- component_id: lib
name: maz-ui Library
paths:
- packages/lib/**
- component_id: utils
name: Utils Package
paths:
- packages/utils/**
- component_id: mcp
name: MCP Package
paths:
- packages/mcp/**
- component_id: icons
name: Icons Package
paths:
- packages/icons/**
- component_id: translations
name: Translations Package
paths:
- packages/translations/**
- component_id: node
name: Node Package
paths:
- packages/node/**
- component_id: nuxt
name: Nuxt Package
paths:
- packages/nuxt/**
- component_id: themes
name: Themes Package
paths:
- packages/themes/**
- component_id: maz-cli
name: Maz CLI
paths:
- packages/maz-cli/**