Skip to content

Commit

Permalink
Convert codecov flags to components (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
thom-at-redhat authored May 8, 2024
1 parent f4cbe80 commit 2c99678
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
27 changes: 18 additions & 9 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage:
target: auto
threshold: 5%
comment:
layout: " diff, flags, files"
layout: "header, diff, files, components" # PR comment layout
behavior: default
require_changes: false
require_base: false
Expand All @@ -21,13 +21,22 @@ codecov:
notify:
wait_for_ci: false
after_n_builds: 1
flag_management:
default_rules: # the rules that will be followed for any flag added, generally
carryforward: true
statuses:
- type: project
target: auto
threshold: 5%
- type: patch
component_management:
default_rules: # default rules that will be inherited by all components
statuses: # Status definitions
- type: project # Default status = project
target: auto
threshold: 5%
branches:
- "!devel"
individual_components: # Actual component breakdown
- component_id: go # Required unique identifier for component (Should not be changed)
name: Go # Display name (can be changed)
paths:
- cmd/**
- internal/**
- pkg/**
- component_id: receptorctl
name: Receptorctl
paths:
- receptorctl/**
1 change: 0 additions & 1 deletion .github/workflows/coverage_reporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
flags: go
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,5 @@ jobs:
directory: receptorctl
files: receptorctl_coverage.xml
fail_ci_if_error: true
flags: receptorctl
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit 2c99678

Please sign in to comment.