Skip to content

Commit d40b1ca

Browse files
committed
test with config file in .github directory
1 parent 6e87b0f commit d40b1ca

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/codecov.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Codecov configuration file
2+
# This file configures code coverage reporting and requirements for the project
3+
coverage:
4+
5+
# Coverage status configuration
6+
status:
7+
8+
# Project-level coverage settings
9+
project:
10+
11+
# Default status check configuration
12+
default:
13+
14+
# The minimum required coverage value for the project
15+
target: 80%
16+
17+
# The allowed coverage decrease before failing the status check
18+
threshold: 0%
19+
20+
# Patch-level coverage settings
21+
patch:
22+
23+
default:
24+
25+
target: 80%
26+
threshold: 0%
27+
28+
# Ignore files or packages matching their paths
29+
ignore:
30+
- '\.pb\.go$' # Excludes all protobuf generated files
31+
- '\.gen\.go' # Excludes generated files
32+
- '^fake_.*\.go' # Excludes fakes
33+
- '^test/.*$'
34+
- 'app.go' # app.go and main.go should be tested by integration tests.
35+
- 'main.go'
36+
# ignore metadata generated files
37+
- 'metadata/generated_.*\.go'
38+
# ignore wrappers around gopsutil
39+
- 'internal/datasource/host'
40+
- 'internal/watcher/process'
41+
- 'pkg/nginxprocess'

0 commit comments

Comments
 (0)