File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change 5959
6060 - name : Generate coverage report
6161 run : |
62- # Check if stats file exists (created by busted --coverage)
6362 if [ -f "luacov.stats.out" ]; then
64- # Generate the regular luacov report
6563 nix develop .#ci -c luacov
6664
67- # Create simple lcov.info from luacov.report.out
6865 echo "Creating lcov.info from luacov.report.out"
6966 {
7067 echo "TN:"
@@ -81,24 +78,20 @@ jobs:
8178 done
8279 } > lcov.info
8380
84- # Create markdown coverage summary for GitHub Actions
8581 {
8682 echo "## 📊 Test Coverage Report"
8783 echo ""
8884
89- # Extract overall coverage percentage
9085 if [ -f "luacov.report.out" ]; then
9186 overall_coverage=$(grep -E "Total.*%" luacov.report.out | grep -oE "[0-9]+\.[0-9]+%" | head -1)
9287 if [ -n "$overall_coverage" ]; then
9388 echo "**Overall Coverage: $overall_coverage**"
9489 echo ""
9590 fi
9691
97- # Create table header
9892 echo "| File | Coverage |"
9993 echo "|------|----------|"
10094
101- # Extract file-by-file coverage
10295 grep -E "^[^ ].*:" luacov.report.out | while read -r line; do
10396 file=$(echo "$line" | cut -d':' -f1)
10497 percent=$(echo "$line" | grep -oE "[0-9]+\.[0-9]+%" | head -1)
You can’t perform that action at this time.
0 commit comments