From 8841989401bb0456f26d18826fbbcae1048349aa Mon Sep 17 00:00:00 2001 From: Yellow Shine Date: Mon, 21 Oct 2024 19:06:45 +0800 Subject: [PATCH] enhance: [codecov]split code coverage into components Signed-off-by: Yellow Shine --- .github/workflows/main.yaml | 1 + codecov.yml | 30 +++++++++++++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 902af35e9800e..dc1506aaab6c5 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -311,3 +311,4 @@ jobs: name: ubuntu-20.04-unittests fail_ci_if_error: true disable_safe_directory: true + diff --git a/codecov.yml b/codecov.yml index 8d039a792ede2..571a70f23de95 100644 --- a/codecov.yml +++ b/codecov.yml @@ -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"