You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/phpunit-coverage.yml
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -44,8 +44,8 @@ jobs:
44
44
run: |
45
45
# Run tests and capture coverage output
46
46
coverage_output=$(npm run test-php-coverage -- --coverage-text)
47
-
# Extract only the coverage report section and format it
48
-
filtered_output=$(echo "$coverage_output" | sed -n '/^Code Coverage Report:/,$p' | sed '1 s/^/## /' | sed '/^[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}/d' | sed '/^Summary:/s/^/### /')
47
+
# Extract only the coverage report section
48
+
filtered_output=$(echo "$coverage_output" | sed -n '/^Summary:/,$p')
49
49
echo "$filtered_output" | tee coverage-summary.txt
0 commit comments