Skip to content

Commit

Permalink
enhance: [codecov]split code coverage into components
Browse files Browse the repository at this point in the history
Signed-off-by: Yellow Shine <[email protected]>
  • Loading branch information
yellow-shine committed Oct 21, 2024
1 parent e6cb7d6 commit 8841989
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -311,3 +311,4 @@ jobs:
name: ubuntu-20.04-unittests
fail_ci_if_error: true
disable_safe_directory: true

30 changes: 29 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,39 @@ coverage:
if_ci_failed: error #success, failure, error, ignore

comment:
layout: "reach, diff, flags, files"
layout: "reach, diff, flags, files, components"
behavior: default
require_changes: false
branches: # branch names that can post comment
- master

component_management:
default_rules: # default rules that will be inherited by all components
statuses:
- type: project # in this case every component that doens't have a status defined will have a project type one
target: auto
branches:
- "!main"

individual_components:
- component_id: client
name: client
paths:
- client/**
- component_id: core
name: core
paths:
- internal/core/**
- component_id: cpp
name: cpp
paths:
- "**/*.c"
- "**/*.cpp"
- "**/*.h"
- component_id: go
name: go
paths:
- "**/*.go" # Includes all Go source files

ignore:
- "LICENSES"
Expand Down

0 comments on commit 8841989

Please sign in to comment.