1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-13 20:30:03 +00:00

Merge pull request #1095 from fmuyassarov/codecov-uploader

e2e: add codecov uploader configuration
This commit is contained in:
Kubernetes Prow Robot 2023-04-14 14:30:41 -07:00 committed by GitHub
commit 018cd33306
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

4
codecov.yml Normal file
View file

@ -0,0 +1,4 @@
comment:
layout: "reach, diff, flags, files"
behavior: new
require_changes: false

View file

@ -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!"