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 59
59
60
60
- name : Generate coverage report
61
61
run : |
62
- # Check if stats file exists (created by busted --coverage)
63
62
if [ -f "luacov.stats.out" ]; then
64
- # Generate the regular luacov report
65
63
nix develop .#ci -c luacov
66
64
67
- # Create simple lcov.info from luacov.report.out
68
65
echo "Creating lcov.info from luacov.report.out"
69
66
{
70
67
echo "TN:"
@@ -81,24 +78,20 @@ jobs:
81
78
done
82
79
} > lcov.info
83
80
84
- # Create markdown coverage summary for GitHub Actions
85
81
{
86
82
echo "## 📊 Test Coverage Report"
87
83
echo ""
88
84
89
- # Extract overall coverage percentage
90
85
if [ -f "luacov.report.out" ]; then
91
86
overall_coverage=$(grep -E "Total.*%" luacov.report.out | grep -oE "[0-9]+\.[0-9]+%" | head -1)
92
87
if [ -n "$overall_coverage" ]; then
93
88
echo "**Overall Coverage: $overall_coverage**"
94
89
echo ""
95
90
fi
96
91
97
- # Create table header
98
92
echo "| File | Coverage |"
99
93
echo "|------|----------|"
100
94
101
- # Extract file-by-file coverage
102
95
grep -E "^[^ ].*:" luacov.report.out | while read -r line; do
103
96
file=$(echo "$line" | cut -d':' -f1)
104
97
percent=$(echo "$line" | grep -oE "[0-9]+\.[0-9]+%" | head -1)
You can’t perform that action at this time.
0 commit comments