File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
templates/github/workflows Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 85
85
id : annotate
86
86
if : github.event.pull_request.base.sha != ''
87
87
run : |
88
+ curl -sLO https://github.com/vearutop/gocovdiff/releases/download/v1.3.6/linux_amd64.tar.gz && tar xf linux_amd64.tar.gz
89
+ gocovdiff_hash=$(git hash-object ./gocovdiff)
90
+ [ "$gocovdiff_hash" == "8e507e0d671d4d6dfb3612309b72b163492f28eb" ] || (echo "::error::unexpected hash for gocovdiff, possible tampering: $gocovdiff_hash" && exit 1)
88
91
git fetch origin master ${{ github.event.pull_request.base.sha }}
89
- curl -sLO https://github.com/vearutop/gocovdiff/releases/download/v1.3.4/linux_amd64.tar.gz && tar xf linux_amd64.tar.gz && shasum -a 256 gocovdiff && echo "b351c67526eefeb0671c82e9271ae984875865eed19e911f40f78348cb98347c gocovdiff" | shasum -c
90
92
REP=$(./gocovdiff -cov integration.coverprofile -gha-annotations gha-integration.txt -delta-cov-file delta-cov-integration.txt -target-delta-cov ${TARGET_DELTA_COV})
91
93
echo "${REP}"
92
94
REP="${REP//$'\n'/%0A}"
Original file line number Diff line number Diff line change 88
88
id : annotate
89
89
if : matrix.go-version == env.COV_GO_VERSION && github.event.pull_request.base.sha != ''
90
90
run : |
91
+ curl -sLO https://github.com/vearutop/gocovdiff/releases/download/v1.3.6/linux_amd64.tar.gz && tar xf linux_amd64.tar.gz
92
+ gocovdiff_hash=$(git hash-object ./gocovdiff)
93
+ [ "$gocovdiff_hash" == "8e507e0d671d4d6dfb3612309b72b163492f28eb" ] || (echo "::error::unexpected hash for gocovdiff, possible tampering: $gocovdiff_hash" && exit 1)
91
94
git fetch origin master ${{ github.event.pull_request.base.sha }}
92
- curl -sLO https://github.com/vearutop/gocovdiff/releases/download/v1.3.4/linux_amd64.tar.gz && tar xf linux_amd64.tar.gz && shasum -a 256 gocovdiff && echo "b351c67526eefeb0671c82e9271ae984875865eed19e911f40f78348cb98347c gocovdiff" | shasum -c
93
95
REP=$(./gocovdiff -cov unit.coverprofile -gha-annotations gha-unit.txt -delta-cov-file delta-cov-unit.txt -target-delta-cov ${TARGET_DELTA_COV})
94
96
echo "${REP}"
95
97
REP="${REP//$'\n'/%0A}"
You can’t perform that action at this time.
0 commit comments