Skip to content

Commit 5864c4e

Browse files
committed
Update phpunit-coverage.yml
1 parent 4009de5 commit 5864c4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/phpunit-coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ jobs:
4444
run: |
4545
# Run tests and capture coverage output
4646
coverage_output=$(npm run test-php-coverage -- --coverage-text)
47-
# Extract only the coverage report section, starting from "Summary:" line
48-
filtered_output=$(echo "$coverage_output" | sed -n '/^Summary:/,$p')
47+
# Extract only the coverage report section
48+
filtered_output=$(echo "$coverage_output" | sed -n '/^Code Coverage Report:/,$p')
4949
echo "$filtered_output" | tee coverage-summary.txt
5050
echo "coverage_summary<<EOF" >> $GITHUB_ENV
51-
cat coverage-summary.txt >> $GITHUB_ENV
51+
echo "$filtered_output" >> $GITHUB_ENV
5252
echo "EOF" >> $GITHUB_ENV
5353
5454
- name: Find Comment

0 commit comments

Comments
 (0)