Skip to content

Commit 0c26326

Browse files
committed
Run tests on PHP 8.4 and update test suite
1 parent fe0ac7e commit 0c26326

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,35 @@ jobs:
2626
- 5.4
2727
- 5.3
2828
steps:
29-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v3
3030
- uses: shivammathur/setup-php@v2
3131
with:
3232
php-version: ${{ matrix.php }}
3333
coverage: xdebug
34-
- run: composer remove react/mysql --dev --no-interaction # do not install react/mysql example on legacy PHP
34+
- name: Handle PHP 5.3 compatibility
3535
if: ${{ matrix.php == 5.3 }}
36+
run: |
37+
composer remove react/mysql react/promise-timer --dev --no-interaction
38+
# Skip tests that require React\Promise\Timer
39+
echo "PHPUNIT_ARGS=--exclude-group=internet" >> $GITHUB_ENV
3640
- run: composer install
37-
- run: vendor/bin/phpunit --coverage-text
41+
- run: vendor/bin/phpunit --coverage-text $PHPUNIT_ARGS
3842
if: ${{ matrix.php >= 7.3 }}
39-
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
43+
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy $PHPUNIT_ARGS
4044
if: ${{ matrix.php < 7.3 }}
4145

4246
PHPUnit-hhvm:
4347
name: PHPUnit (HHVM)
4448
runs-on: ubuntu-24.04
4549
continue-on-error: true
4650
steps:
47-
- uses: actions/checkout@v2
48-
- uses: azjezz/setup-hhvm@v1
51+
- uses: actions/checkout@v3
52+
- run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
53+
- name: Run HHVM Composer install
54+
uses: docker://hhvm/hhvm:3.30-lts-latest
4955
with:
50-
version: lts-3.30
51-
- run: composer self-update --2.2 # downgrade Composer for HHVM
52-
- run: hhvm $(which composer) install
53-
- run: hhvm vendor/bin/phpunit
56+
args: hhvm composer.phar remove react/mysql react/promise-timer --dev --no-interaction && hhvm composer.phar install
57+
- name: Run HHVM PHPUnit
58+
uses: docker://hhvm/hhvm:3.30-lts-latest
59+
with:
60+
args: hhvm vendor/bin/phpunit --exclude-group=internet

0 commit comments

Comments
 (0)