mirror of
https://github.com/Lifailon/lazyjournal.git
synced 2026-11-11 01:09:46 +01:00
update table for testing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user