diff --git a/.codecov.yaml b/.codecov.yaml index 6dbe6da23..c922a17ba 100644 --- a/.codecov.yaml +++ b/.codecov.yaml @@ -1,5 +1,24 @@ +coverage: + # Commit status https://docs.codecov.io/docs/commit-status are used + # to block PR based on coverage threshold. + status: + project: + default: + target: 80 + threshold: 1% + patch: + # Disable the coverage threshold of the patch, so that PRs are + # only failing because of overall project coverage threshold. + # See https://docs.codecov.io/docs/commit-status#disabling-a-status. + default: false +comment: + # Update existing comment or create new if deleted. + behavior: default ignore: - "**/zz_generated*.go" # Ignore generated files. + - "**/*.pb.go" # Ignore proto-generated files. + - "hack" - "pkg/client" + - "test" - "third_party" - "vendor"