update table for testing

This commit is contained in:
Lifailon
2025-09-15 10:42:40 +03:00
parent 1e7ce6b071
commit ec69222360
2 changed files with 9 additions and 7 deletions
+4 -4
View File
@@ -294,12 +294,12 @@ jobs:
out=$(go tool cover -func merge-coverage.out)
coverTotal=$(echo "$out" | tail -n 1 | sed -E "s/.+\)\s+//")
echo "- Total: $coverTotal" >> $GITHUB_STEP_SUMMARY
mdReport=$(echo "$out" | sed -E 's/^[^:]*://' | sed "s/://" | head -n -1)
title="Line Function Coverage"
separator="- - -"
mdReport=$(echo "$out" | sed -E 's/.+\///' | sed "s/:/ /g" | head -n -1)
title="File Line Function Coverage"
separator="- - - -"
echo "## 📚 Test Report" >> $GITHUB_STEP_SUMMARY
mdReport=$(echo -e "$title\n$separator\n$mdReport")
echo "$mdReport" | awk '{print "|" $1 "|" $2 "|" $3 "|"}' >> $GITHUB_STEP_SUMMARY
echo "$mdReport" | awk '{print "|" $1 "|" $2 "|" $3 "|" $4 "|"}' >> $GITHUB_STEP_SUMMARY
- name: Upload merge coverage report
uses: actions/upload-artifact@v4