Skip to content

Commit b9d7f44

Browse files
committed
ci: simplify GitHub Actions coverage report generation
- Remove redundant code and comments in coverage generation - Streamline coverage report workflow for better maintainability Change-Id: I37ff03afa456e3350409646616f58c0791e63765 Signed-off-by: Thomas Kosiewski <[email protected]>
1 parent 7785d0e commit b9d7f44

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,9 @@ jobs:
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)

0 commit comments

Comments
 (0)