File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
8
PHPUnit :
9
- name : PHPUnit (PHP ${{ matrix.php }})
9
+ name : PHPUnit (PHP ${{ matrix.php }} ${{ matrix.event-loop }} )
10
10
runs-on : ubuntu-20.04
11
11
strategy :
12
12
matrix :
13
+ event-loop :
14
+ - ' '
15
+ - ' event'
16
+ - ' uv'
13
17
php :
14
18
- 8.1
15
19
- 8.0
28
32
with :
29
33
php-version : ${{ matrix.php }}
30
34
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' }}
31
47
- run : composer install
32
48
- run : vendor/bin/phpunit --coverage-text
33
49
if : ${{ matrix.php >= 7.3 }}
You can’t perform that action at this time.
0 commit comments