mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
chore(codecov): make informational codecov when pull master
Signed-off-by: slasher <shenjie1@oppo.com>
This commit is contained in:
parent
460b6016bb
commit
c69c8bd3d8
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -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
18
codecov.yaml
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user