From 935d1da7d5f616f09c72d1bd782288e87efcc8b0 Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Mon, 12 Aug 2024 15:13:54 +0200 Subject: [PATCH] [codecov] simplify config Signed-off-by: Vitalii Koshura --- .codecov.yml | 14 ++++++++------ .github/workflows/android.yml | 5 +---- .github/workflows/linux.yml | 5 +---- .github/workflows/windows.yml | 5 +---- 4 files changed, 11 insertions(+), 18 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index a3125beb0f..68da4c3a55 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,9 +1,8 @@ codecov: - require_ci_to_pass: yes + require_ci_to_pass: true notify: after_n_builds: 3 - wait_for_ci: yes - token: ${{ secrets.CODECOV_TOKEN }} + wait_for_ci: true coverage: status: @@ -15,13 +14,16 @@ coverage: comment: layout: "diff, files" behavior: default - require_changes: yes # if true: only post the comment if coverage changes - require_base: no # [yes :: must have a base report to post] - require_head: yes # [yes :: must have a head report to post] + require_changes: true # if true: only post the comment if coverage changes + require_base: false # [true :: must have a base report to post] + require_head: true # [true :: must have a head report to post] branches: - master after_n_builds: 3 +github_checks: + annotations: false + flags: # filter the folder(s) you wish to measure by that flag api: diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 4a384bf654..001b464f82 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -188,13 +188,10 @@ jobs: path: android/BOINC/app/build/test-results/testDebugUnitTest/TEST-*.xml - name: Upload coverage report + if: ${{ matrix.task == 'jacocoTestReportDebug' }} uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - if: ${{ matrix.task == 'jacocoTestReportDebug' }} - with: - fail_ci_if_error: true - verbose: false build: name: ${{ matrix.type }}-build diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e031765b78..9181c86725 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -195,13 +195,10 @@ jobs: path: "tests/gtest/**/*_xml_report.xml" - name: Upload coverage report + if: success() && matrix.type == 'unit-test' uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - if: success() && matrix.type == 'unit-test' - with: - fail_ci_if_error: true - verbose: false build-release: name: ${{ matrix.type }}-build-release diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 8aed67d0bd..ebc0e01899 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -168,7 +168,4 @@ jobs: if: success() && matrix.platform == 'x64' && matrix.type == 'msbuild' uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 env: - CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} - with: - fail_ci_if_error: true - verbose: false + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}