Repository navigation
Expand file tree
/
Copy pathcodecov.yml
More file actions
67 lines (62 loc) · 1.72 KB
/
Copy pathcodecov.yml
File metadata and controls
67 lines (62 loc) · 1.72 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
# Codecov configuration for the App-SRE Codecov instance (codecov-appsre).
# Coverage is uploaded per Go module by .github/workflows/unit-tests.yml via
# scripts/codecov-upload.sh. Statuses are informational: they report but do
# not block merges until the team agrees on targets.
codecov:
require_ci_to_pass: yes
# Go coverage profiles name files by module import path; strip the repository
# prefix so they match paths in the repository.
fixes:
- "github.com/openshift-online/hypershell/::"
coverage:
precision: 2
round: down
range: "50...100"
status:
project:
default:
informational: true
target: auto
threshold: 1%
patch:
default:
informational: true
target: auto
threshold: 1%
# scripts/codecov-upload.sh also removes these generated files from each
# profile before uploading (GENERATED_CODE_PATTERN), because the Codecov
# instance has processed reports without this file. Keep the two in step.
ignore:
- "**/*.pb.go"
- "**/*.pb.gw.go"
- "**/mock_*.go"
- "**/*_mock.go"
- "**/zz_generated*.go"
- "components/api-server/pkg/api/openapi/**"
- "tests/**"
- "docs/**"
# Unit jobs run only for components a change touches, so each flag carries
# its last coverage forward when its job is skipped.
flags:
api-server:
paths:
- components/api-server/
carryforward: true
control-plane:
paths:
- components/control-plane/
carryforward: true
cli:
paths:
- components/cli/
carryforward: true
sdk-generator:
paths:
- scripts/sdk-generator/
carryforward: true
comment:
layout: "header,diff,flags,files,footer"
behavior: default
require_changes: false
require_base: true
require_head: true