Skip to content

Commit 8f722f3

Browse files
committed
update
1 parent 4570675 commit 8f722f3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/_unit_test_coverage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ jobs:
180180
- name: Check Unit Test Success
181181
shell: bash
182182
run: |
183+
cd FastDeploy
183184
if [ "$TEST_EXIT_CODE" -eq 8 ]; then
184185
if [ -z "${unittest_failed_url}" ]; then
185186
echo "No diff unit failed file URL provided."
@@ -199,14 +200,16 @@ jobs:
199200
- name: Verify Code Coverage Threshold (80%)
200201
shell: bash
201202
run: |
203+
cd FastDeploy
202204
if [ "$COVERAGE_EXIT_CODE" -eq 9 ]; then
203205
echo "Coverage generation failed (exit code 9)"
206+
filename=$(basename "$diff_cov_result_json_url")
204207
if [ -z "${diff_cov_result_json_url}" ]; then
205208
echo "No diff cov result file URL provided."
206209
else
207-
wget ${diff_cov_result_json_url} || echo "Download cov json file failed, but continuing..."
210+
rm -rf "${filename}"
211+
wget -O ${filename} ${diff_cov_result_json_url} || echo "Download cov json file failed, but continuing..."
208212
fi
209-
filename=$(basename "$diff_cov_result_json_url")
210213
if [ -f "${filename}" ];then
211214
echo "Failed test cases:"
212215
if command -v jq >/dev/null 2>&1; then

0 commit comments

Comments
 (0)