diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2d751c23..736539f25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 000000000..93a2e4d2a --- /dev/null +++ b/codecov.yaml @@ -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 | + threshold: 5% # + + # advanced settings + branches: + - master + only_pulls: true + informational: true + removed_code_behavior: off #removals_only, fully_covered_patch, adjust_base", + + patch: + default: + informational: true