Skip to content

Commit 560825e

Browse files
abnegateclaude
andcommitted
(fix): handle Swoole exit segfault in unit test step too
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 59bc61f commit 560825e

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,16 @@ jobs:
2525
run: composer install --prefer-dist --no-progress
2626

2727
- name: Run tests with coverage
28-
run: ./vendor/bin/phpunit --testsuite Unit --coverage-clover=coverage/unit.xml --coverage-text 2>&1 | tee coverage/unit-summary.txt
28+
run: |
29+
set +e
30+
./vendor/bin/phpunit --testsuite Unit --coverage-clover=coverage/unit.xml --coverage-text 2>&1 | tee coverage/unit-summary.txt
31+
EXIT=${PIPESTATUS[0]}
32+
set -e
33+
if [ "$EXIT" -eq 139 ] && [ -f coverage/unit.xml ]; then
34+
echo "Swoole exit segfault (ignored — coverage report exists)"
35+
exit 0
36+
fi
37+
exit $EXIT
2938
3039
- name: Upload coverage
3140
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)