Skip to content

Commit 3ae1151

Browse files
authored
Merge pull request #19648 from k8s-infra-cherrypick-robot/cherry-pick-19424-to-release-3.6
[release-3.6] github/workflows: remove coverage workflow
2 parents b4d383f + 922dfbf commit 3ae1151

File tree

3 files changed

+13
-38
lines changed

3 files changed

+13
-38
lines changed

.github/workflows/coverage.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ test-coverage:
6464

6565
.PHONY: upload-coverage-report
6666
upload-coverage-report: test-coverage
67-
./scripts/codecov_upload.sh
67+
COVERDIR=covdir ./scripts/codecov_upload.sh
6868

6969
.PHONY: fuzz
7070
fuzz:

scripts/codecov_upload.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
#!/usr/bin/env bash
22

3-
# Script used to collect and upload test coverage (mostly by travis).
4-
# Usage ./test_coverage_upload.sh [log_file]
3+
# Script used to collect and upload test coverage.
54

65
set -o pipefail
76

87
# We try to upload whatever we have:
9-
bash <(curl -s https://codecov.io/bash) -f ./covdir/all.coverprofile -cF all
8+
mkdir -p bin
9+
curl -sf -o ./bin/codecov.sh https://codecov.io/bash
10+
11+
bash ./bin/codecov.sh -f "${COVERDIR}/all.coverprofile" \
12+
-cF all \
13+
-C "${PULL_PULL_SHA}" \
14+
-r "${REPO_OWNER}/${REPO_NAME}" \
15+
-P "${PULL_NUMBER}" \
16+
-b "${BUILD_ID}" \
17+
-B "${PULL_BASE_REF}" \
18+
-N "${PULL_BASE_SHA}"

0 commit comments

Comments
 (0)