From 28c339420ce93c6784f0dca44855a9505a0aea96 Mon Sep 17 00:00:00 2001 From: Thom Carlin Date: Tue, 23 Apr 2024 06:56:57 -0400 Subject: [PATCH 1/2] Add codecov flag for go coverage --- .github/workflows/coverage_reporting.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/coverage_reporting.yml b/.github/workflows/coverage_reporting.yml index ce94fc3b8..a56cb6680 100644 --- a/.github/workflows/coverage_reporting.yml +++ b/.github/workflows/coverage_reporting.yml @@ -53,6 +53,7 @@ jobs: uses: codecov/codecov-action@v4 with: fail_ci_if_error: true + flags: go verbose: true env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From fdd62760b7d63b68f20501849b9be541597f7795 Mon Sep 17 00:00:00 2001 From: Thom Carlin Date: Tue, 23 Apr 2024 07:05:55 -0400 Subject: [PATCH 2/2] Add flag management --- .github/codecov.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/codecov.yml b/.github/codecov.yml index b8ee339d8..e01deace7 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -21,3 +21,12 @@ 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: 1% + - type: patch + target: 90%