Skip to content

Commit

Permalink
Merge pull request #1095 from fmuyassarov/codecov-uploader
Browse files Browse the repository at this point in the history
e2e: add codecov uploader configuration
  • Loading branch information
k8s-ci-robot authored Apr 14, 2023
2 parents fef5e56 + 6ed43c2 commit 018cd33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
comment:
layout: "reach, diff, flags, files"
behavior: new
require_changes: false
7 changes: 7 additions & 0 deletions scripts/test-infra/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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!"
Expand Down

0 comments on commit 018cd33

Please sign in to comment.