[codecov] simplify config

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
Vitalii Koshura 2024-08-12 15:13:54 +02:00
parent 20473d29b5
commit 935d1da7d5
No known key found for this signature in database
GPG Key ID: CE0DB1726070A5A3
4 changed files with 11 additions and 18 deletions

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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 }}