Skip to content

Commit

Permalink
Test all supported event loops
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jan 25, 2022
1 parent ab03f4d commit 150e532
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ on:

jobs:
PHPUnit:
name: PHPUnit (PHP ${{ matrix.php }})
name: PHPUnit (PHP ${{ matrix.php }} ${{ matrix.event-loop }})
runs-on: ubuntu-20.04
strategy:
matrix:
event-loop:
- ''
- 'event'
- 'uv'
php:
- 8.1
- 8.0
Expand All @@ -28,6 +32,19 @@ jobs:
with:
php-version: ${{ matrix.php }}
coverage: xdebug
extensions: socket
- run: sudo apt-get update && sudo apt-get install libevent-dev
- name: Install ext-event
run: |
echo "yes" | sudo pecl install event
echo "extension=event.so" | sudo tee -a "$(php -r 'echo php_ini_loaded_file();')"
if: ${{ matrix.event-loop == 'event' }}
- name: Install ext-uv
run: |
sudo add-apt-repository ppa:ondrej/php -y && sudo apt-get update -q && sudo apt-get install libuv1-dev
echo "yes" | sudo pecl install uv-beta
echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')"
if: ${{ matrix.event-loop == 'uv' }}
- run: composer install
- run: vendor/bin/phpunit --coverage-text
if: ${{ matrix.php >= 7.3 }}
Expand Down

0 comments on commit 150e532

Please sign in to comment.