Skip to content

Commit cfc7ad3

Browse files
authored
Merge pull request #280 from WyriHaximus-labs/1.x-PHP-8.4
Run tests on PHP 8.4 and update test environment
2 parents bbe0bd8 + 27b6f63 commit cfc7ad3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 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
@@ -32,7 +33,7 @@ jobs:
3233
coverage: xdebug
3334
ini-file: development
3435
ini-values: disable_functions='' # do not disable PCNTL functions on PHP < 8.1
35-
extensions: sockets, pcntl ${{ matrix.php >= 5.6 && ', event' || '' }} ${{ matrix.php >= 5.4 && ', ev' || '' }}
36+
extensions: sockets, pcntl ${{ matrix.php >= 5.6 && ', event' || '' }} ${{ matrix.php >= 5.4 && (matrix.php < 8.0 && ', ev-1.1.5' || ', ev') || '' }}
3637
env:
3738
fail-fast: true # fail step if any extension can not be installed
3839
- run: composer install
@@ -43,11 +44,12 @@ jobs:
4344

4445
PHPUnit-Unstable:
4546
name: PHPUnit (Unstable PHP ${{ matrix.php }})
46-
runs-on: ubuntu-20.04
47+
runs-on: ubuntu-22.04
4748
continue-on-error: true
4849
strategy:
4950
matrix:
5051
php:
52+
- 8.4
5153
- 8.3
5254
- 8.2
5355
- 8.1
@@ -77,8 +79,8 @@ jobs:
7779
if: ${{ matrix.php >= 7.0 }}
7880
- name: Install legacy ext-libevent on PHP < 7.0
7981
run: |
80-
sudo apt-get update && sudo apt-get install libevent-dev
81-
curl http://pecl.php.net/get/libevent-0.1.0.tgz | tar -xz
82+
sudo apt-get update && sudo apt --fix-broken install && sudo apt-get install libevent-dev
83+
curl https://pecl.php.net/get/libevent-0.1.0.tgz | tar -xz
8284
pushd libevent-0.1.0
8385
phpize
8486
./configure
@@ -111,6 +113,7 @@ jobs:
111113
strategy:
112114
matrix:
113115
php:
116+
- 8.4
114117
- 8.3
115118
- 8.2
116119
- 8.1

0 commit comments

Comments
 (0)