Repository navigation
Expand file tree
/
Copy pathcodecov.yml
More file actions
58 lines (55 loc) · 1.88 KB
/
Copy pathcodecov.yml
File metadata and controls
58 lines (55 loc) · 1.88 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
# Codecov configuration
#
# Validate with:
# curl --data-binary @codecov.yml https://codecov.io/validate
#
# Codecov is REPORTING, not a gate. The enforced coverage rules live in
# coverage-thresholds.json and are applied by .azurepipelines/check-coverage.ps1
# inside the pipeline, where they can react to how much a patch actually
# changed. Codecov is kept for what it is genuinely better at: the pull-request
# comment, the file-by-file diff view and the coverage trend over time.
#
# Both status checks are therefore `informational: true`. They post a status so
# the number is visible, but they never fail and must never be added to the
# branch ruleset - two gates with two sets of thresholds would sooner or later
# disagree about the same pull request, and the one that is easier to silence
# would win. Flip `informational` to false only if you also retire the
# in-pipeline patch gate.
#
# The upload itself is optional and is skipped when the CODECOV_TOKEN secret
# is absent (as it is on fork pull requests). See `ENABLE_CODECOV` in
# .github/workflows/buildandtest.yml.
coverage:
precision: 2
round: down
status:
project:
default:
target: auto
threshold: 1%
informational: true
only_pulls: true
patch:
default:
target: 80%
threshold: 5%
informational: true
only_pulls: true
# Kept in step with the "ignore" list in coverage-thresholds.json so Codecov and
# the in-pipeline gate measure the same code. Change both together.
ignore:
- "tests/**"
- "samples/**"
- "perf/**"
- "**/obj/**"
- "**/bin/**"
- "**/*.g.cs"
# Each upload carries a flag (`actions`), and flags carry forward so a run that
# uploads fewer legs is not mistaken for a coverage swing.
flag_management:
default_rules:
carryforward: true
comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: false