Skip to content

Commit 4da89b4

Browse files
committed
update
1 parent 6e87458 commit 4da89b4

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
@@ -181,6 +181,7 @@ jobs:
181181
- name: Check Unit Test Success
182182
shell: bash
183183
run: |
184+
cd FastDeploy
184185
if [ "$TEST_EXIT_CODE" -eq 8 ]; then
185186
if [ -z "${unittest_failed_url}" ]; then
186187
echo "No diff unit failed file URL provided."
@@ -200,14 +201,16 @@ jobs:
200201
- name: Verify Code Coverage Threshold (80%)
201202
shell: bash
202203
run: |
204+
cd FastDeploy
203205
if [ "$COVERAGE_EXIT_CODE" -eq 9 ]; then
204206
echo "Coverage generation failed (exit code 9)"
207+
filename=$(basename "$diff_cov_result_json_url")
205208
if [ -z "${diff_cov_result_json_url}" ]; then
206209
echo "No diff cov result file URL provided."
207210
else
208-
wget ${diff_cov_result_json_url} || echo "Download cov json file failed, but continuing..."
211+
rm -rf "${filename}"
212+
wget -O ${filename} ${diff_cov_result_json_url} || echo "Download cov json file failed, but continuing..."
209213
fi
210-
filename=$(basename "$diff_cov_result_json_url")
211214
if [ -f "${filename}" ];then
212215
echo "Failed test cases:"
213216
if command -v jq >/dev/null 2>&1; then

0 commit comments

Comments
 (0)