Skip to content

Commit db61c21

Browse files
authored
Configure codecov to assess relevant project information (#2294)
1 parent 30ba350 commit db61c21

File tree

4 files changed

+41
-27
lines changed

4 files changed

+41
-27
lines changed

.github/codecov.yml

+41-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,44 @@
11
comment: false
22

33
github_checks:
4-
annotations: false
4+
annotations: false
5+
6+
coverage:
7+
status:
8+
project:
9+
default: false
10+
operator:
11+
paths:
12+
- "!tests/"
13+
- "!tools/"
14+
tests:
15+
paths: "test/"
16+
tools:
17+
paths: "tools/"
18+
19+
component_management:
20+
default_rules: # default rules that will be inherited by all components
21+
statuses:
22+
- type: project
23+
target: auto
24+
informational: true
25+
individual_components:
26+
- component_id: operator
27+
name: operator
28+
paths:
29+
- "!tests/"
30+
- "!tools/"
31+
- component_id: test-helpers
32+
name: test-helpers
33+
paths:
34+
- test/**
35+
- component_id: tools
36+
name: tools
37+
paths:
38+
- tools/**
39+
statuses:
40+
- type: project
41+
target: auto
42+
threshold: 5
43+
informational: true
44+
- type: patch

.github/workflows/test-e2e-gov.yml

-8
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,3 @@ jobs:
4646
with:
4747
name: logs
4848
path: output/**
49-
- name: Upload test results to codecov.io
50-
if: ${{ success() }}
51-
uses: codecov/codecov-action@v5
52-
with:
53-
name: ${{ matrix.test }}
54-
token: ${{ secrets.CODECOV_TOKEN }}
55-
files: test/e2e/coverprofile.out
56-
verbose: true

.github/workflows/test-e2e.yml

-9
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,3 @@ jobs:
276276
with:
277277
name: logs
278278
path: output/**
279-
- name: Upload test results to codecov.io
280-
if: ${{ success() }}
281-
uses: codecov/codecov-action@v5
282-
with:
283-
name: e2e-${{ matrix.test }}
284-
flags: e2e,${{ matrix.test }}
285-
token: ${{ secrets.CODECOV_TOKEN }}
286-
files: test/e2e/coverprofile.out
287-
verbose: true

.github/workflows/test-int.yml

-9
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,3 @@ jobs:
5353
GINKGO_EDITOR_INTEGRATION: "true"
5454
run: |
5555
devbox run -- 'make ${{ matrix.target }}'
56-
- name: Upload coverage to Codecov
57-
uses: codecov/codecov-action@v5
58-
with:
59-
name: int-${{ matrix.test }}
60-
flags: integration,${{ matrix.test }}
61-
token: ${{ secrets.CODECOV_TOKEN }}
62-
files: coverprofile.out
63-
verbose: true
64-

0 commit comments

Comments
 (0)