Skip to content

Commit 4009de5

Browse files
committed
Update phpunit-coverage.yml
1 parent 57ef969 commit 4009de5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/phpunit-coverage.yml

Lines changed: 2 additions & 2 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
47+
# Extract only the coverage report section, starting from "Summary:" line
4848
filtered_output=$(echo "$coverage_output" | sed -n '/^Summary:/,$p')
4949
echo "$filtered_output" | tee coverage-summary.txt
5050
echo "coverage_summary<<EOF" >> $GITHUB_ENV
51-
echo "$filtered_output" >> $GITHUB_ENV
51+
cat coverage-summary.txt >> $GITHUB_ENV
5252
echo "EOF" >> $GITHUB_ENV
5353
5454
- name: Find Comment

0 commit comments

Comments
 (0)