1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

scripts/test-infra: provide PR info to codecov

Provide the commit SHA repo slug, PR number, prow build id and base
branch  to the codecov tool so that it is able to do its job.
This commit is contained in:
Markus Lehtonen 2023-04-26 10:50:59 +03:00
parent dbb06905e5
commit 611ed65e43

View file

@ -29,7 +29,12 @@ echo "Running unit tests"
make test
# Upload coverage report
./codecov -t ${CODECOV_TOKEN}
./codecov -t ${CODECOV_TOKEN} \
-C ${PULL_PULL_SHA} \
-r ${REPO_OWNER}/${REPO_NAME} \
-P ${PULL_NUMBER} \
-b ${BUILD_ID} \
-B ${PULL_BASE_REF}
# Check that repo is clean
if ! git diff --quiet; then