chore(codecov): make informational codecov when pull master

Signed-off-by: slasher <shenjie1@oppo.com>
This commit is contained in:
slasher 2023-06-07 14:59:02 +08:00 committed by pengtianyue
parent 460b6016bb
commit c69c8bd3d8
2 changed files with 20 additions and 7 deletions

View File

@ -43,7 +43,7 @@ jobs:
- name: Pack docker_data
if: ${{ always() }}
run: |
pushd docker
pushd docker
sudo tar --exclude='docker_data/datanode*/disk' --exclude='docker_data/disk' -czvf docker_data.tar.gz docker_data
popd
@ -55,12 +55,7 @@ jobs:
path: docker/docker_data.tar.gz
retention-days: 7
- name: Merge coverages
run: |
echo "mode: count" > coverage-all.out
tail -n +2 ./coverage.txt >> coverage-all.out
- name: Upload codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage-all.out
files: ./coverage.txt

18
codecov.yaml Normal file
View File

@ -0,0 +1,18 @@
coverage:
status: # https://docs.codecov.com/docs/commit-status
project:
default: # This can be anything, but it needs to exist as the name
# basic settings
target: auto # auto | <number>
threshold: 5% # <number>
# advanced settings
branches:
- master
only_pulls: true
informational: true
removed_code_behavior: off #removals_only, fully_covered_patch, adjust_base",
patch:
default:
informational: true