1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-29 03:04:40 +00:00

scripts/test-infra: provide PR base SHA to codecov

In the hopes that codecov will be properly showing and calculating the
diff. Also quote the args for proper handling of empty values.
This commit is contained in:
Markus Lehtonen 2023-04-28 13:04:44 +03:00
parent 9c1912cc7b
commit 32072dddf1

View file

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