Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test all supported event loops #25

Draft
wants to merge 1 commit into
base: 4.x
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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