Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert codecov flags to components #1031

Merged
merged 2 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading