Skip to content

Commit

Permalink
gh workflow: Try codecov.yaml repo config approach to split test reports
Browse files Browse the repository at this point in the history
  • Loading branch information
art-tapin committed Jul 24, 2023
1 parent f0115d3 commit 3032dde
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# more at https://docs.codecov.com/docs/codecovyml-reference
codecov:
token: ${{ secrets.CODECOV_TOKEN }}
bot: "Codecov"
max_report_age: 12
require_ci_to_pass: yes
notify:
after_n_builds: 1
wait_for_ci: yes

coverage:
range: "70...100"

comment:
layout: "header, diff, flags, components"

component_management:
individual_components:
- component_id: kuadrant-operator
name: controllers
paths:
- coverage/unit/controllers
- component_id: pkg/common
name: common
paths:
- coverage/unit/pkg/common
- component_id: pkg/common
name: istio
paths:
- coverage/unit/pkg/istio
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/unit/*
flags: unit-tests
# files: ./coverage/unit/
# flags: unit-tests
fail_ci_if_error: true
verbose: true

Expand Down

0 comments on commit 3032dde

Please sign in to comment.