diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 000000000..63645f9ee --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,25 @@ +coverage: + precision: 2 + round: down + range: "70...100" + status: + project: + default: + threshold: 20% + patch: on + changes: off + +github_checks: + annotations: false + +comment: false + +ignore: + - "docs" + - "DOCKER" + - "scripts" + - "**/*.pb.go" + - "libs/pubsub/query/query.peg.go" + - "*.md" + - "*.rst" + - "*.yml" diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ccbcfb220..7d312b4f8 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -121,3 +121,7 @@ jobs: - run: | cat ./*profile.out | grep -v "mode: atomic" >> coverage.txt if: env.GIT_DIFF + - uses: codecov/codecov-action@v2.0.3 + with: + file: ./coverage.txt + if: env.GIT_DIFF