Skip to content

Commit 3fc4c64

Browse files
committed
Test all supported event loops
1 parent ab03f4d commit 3fc4c64

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/ci.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ on:
66

77
jobs:
88
PHPUnit:
9-
name: PHPUnit (PHP ${{ matrix.php }})
9+
name: PHPUnit (PHP ${{ matrix.php }} ${{ matrix.event-loop }})
1010
runs-on: ubuntu-20.04
1111
strategy:
1212
matrix:
13+
event-loop:
14+
- ''
15+
- 'event'
16+
- 'uv'
1317
php:
1418
- 8.1
1519
- 8.0
@@ -28,6 +32,18 @@ jobs:
2832
with:
2933
php-version: ${{ matrix.php }}
3034
coverage: xdebug
35+
- run: sudo apt-get update && sudo apt-get install libevent-dev
36+
- name: Install ext-event
37+
run: |
38+
echo "yes" | sudo pecl install event
39+
echo "extension=event.so" | sudo tee -a "$(php -r 'echo php_ini_loaded_file();')"
40+
if: ${{ matrix.event-loop == 'event' }}
41+
- name: Install ext-uv
42+
run: |
43+
sudo add-apt-repository ppa:ondrej/php -y && sudo apt-get update -q && sudo apt-get install libuv1-dev
44+
echo "yes" | sudo pecl install uv-beta
45+
echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')"
46+
if: ${{ matrix.event-loop == 'uv' }}
3147
- run: composer install
3248
- run: vendor/bin/phpunit --coverage-text
3349
if: ${{ matrix.php >= 7.3 }}

0 commit comments

Comments
 (0)