Skip to content

Commit 0dc4ab8

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

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 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,10 +30,19 @@ 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
3435
- run: composer install
3536
- run: docker pull busybox:latest
37+
- run: docker info
38+
- run: docker system prune -f --volumes
39+
- run: docker network prune -f
40+
- run: docker network ls
41+
- run: docker network create test_network
42+
- run: sleep 2
43+
- run: docker network rm test_network
44+
- run: sleep 2
45+
- run: docker network prune -f
3646
- run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml
3747
if: ${{ matrix.php >= 7.3 }}
3848
- run: vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml -c phpunit.xml.legacy
@@ -42,4 +52,4 @@ jobs:
4252
run: |
4353
<?php
4454
$metrics = simplexml_load_file('clover.xml')->project->metrics;
45-
exit((int) $metrics['statements'] === (int) $metrics['coveredstatements'] ? 0 : 1);
55+
exit((int) $metrics['statements'] === (int) $metrics['coveredstatements'] ? 0 : 1);

0 commit comments

Comments
 (0)