Skip to content

Commit b799366

Browse files
committed
Run tests on PHP 8.4 and update test environment
1 parent d9f16d2 commit b799366

File tree

1 file changed

+43
-5
lines changed

1 file changed

+43
-5
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ on:
77
jobs:
88
PHPUnit:
99
name: PHPUnit (PHP ${{ matrix.php }})
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111
strategy:
1212
matrix:
1313
php:
14+
- 8.4
1415
- 8.3
1516
- 8.2
1617
- 8.1
@@ -29,14 +30,51 @@ jobs:
2930
- uses: shivammathur/setup-php@v2
3031
with:
3132
php-version: ${{ matrix.php }}
32-
coverage: xdebug
33+
coverage: ${{ matrix.php < 8.0 && 'xdebug' || 'pcov' }}
3334
ini-file: development
35+
ini-values: memory_limit=512M
3436
- run: composer install
35-
- run: docker pull busybox:latest
36-
- run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
37+
- name: Setup and debug Docker environment
38+
run: |
39+
docker pull busybox:latest
40+
docker info
41+
docker network prune -f
42+
echo "--- Docker networks before initialization ---"
43+
docker network ls
44+
45+
# Create and test networks with verbose output
46+
for i in {1..5}; do
47+
echo "Creating network $i..."
48+
docker network create test_network_$i
49+
echo "Testing connectivity on network $i..."
50+
docker run --rm --network test_network_$i busybox echo "Network $i working"
51+
done
52+
53+
echo "--- Docker networks after initialization ---"
54+
docker network ls
55+
56+
# Clean up
57+
for i in {1..5}; do
58+
echo "Removing network $i..."
59+
docker network rm test_network_$i
60+
done
61+
62+
# Additional debug info
63+
echo "--- Docker network driver info ---"
64+
docker system info | grep -A 10 "Network:"
65+
66+
# Pre-create network for test
67+
docker network create reactphp_test_network
68+
docker network ls
69+
70+
- name: Run tests with verbose debug output (PHP >= 7.3)
3771
if: ${{ matrix.php >= 7.3 }}
38-
- run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml -c phpunit.xml.legacy
72+
run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml --debug
73+
74+
- name: Run tests with verbose debug output (PHP < 7.3)
3975
if: ${{ matrix.php < 7.3 }}
76+
run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml -c phpunit.xml.legacy --debug
77+
4078
- name: Check 100% code coverage
4179
shell: php {0}
4280
run: |

0 commit comments

Comments
 (0)