language: php

php:
  - 8.1
  - 8.2
  - 8.3
  - 8.4
  - nightly

matrix:
  allow_failures:
    - php: 8.4
    - php: nightly

branches:
  only:
  - /.*/

before_script:
  - composer install -o -vvv --no-interaction
  - pecl install grpc
  - pecl install protobuf

script:
  - vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-clover=coverage.xml
  - vendor/bin/phpcs --standard=phpcs_ruleset.xml -np

after_success:
  - bash <(curl -s https://codecov.io/bash)
