language: php

php:
  - 7.4
  - 8.0
  - 8.1
  - 8.2
  - 8.3

before_script:
  - pecl install --onlyreqdeps --nobuild swoole && cd "$(pecl config-get temp_dir)/swoole" && phpize && ./configure --enable-openssl && make -j$(nproc) && make -j$(nproc) install && cd -
  - composer install

script: composer test
