diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..3fee5b7009 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,4 @@ +comment: + layout: "reach, diff, flags, files" + behavior: new + require_changes: false diff --git a/scripts/test-infra/verify.sh b/scripts/test-infra/verify.sh index 1df24e5186..938be4fb45 100755 --- a/scripts/test-infra/verify.sh +++ b/scripts/test-infra/verify.sh @@ -11,6 +11,10 @@ kubectl="$gobinpath/kubectl" curl -L https://dl.k8s.io/release/v1.22.1/bin/linux/amd64/kubectl -o "$kubectl" chmod 755 "$kubectl" +curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import +curl -Os https://uploader.codecov.io/latest/linux/codecov +chmod +x codecov + # Run verify steps echo "Checking gofmt" make gofmt-verify @@ -24,6 +28,9 @@ make helm-lint echo "Running unit tests" make test +# Upload coverage report +./codecov -t ${CODECOV_TOKEN} + # Check that repo is clean if ! git diff --quiet; then echo "Repository is dirty!"