ci.yml 845 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: CI
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. PHPUnit:
  7. name: PHPUnit (PHP ${{ matrix.php }} on ${{ matrix.os }})
  8. runs-on: ${{ matrix.os }}
  9. strategy:
  10. matrix:
  11. os:
  12. - ubuntu-20.04
  13. - windows-2019
  14. php:
  15. - 8.1
  16. - 8.0
  17. - 7.4
  18. - 7.3
  19. - 7.2
  20. - 7.1
  21. - 7.0
  22. - 5.6
  23. - 5.5
  24. - 5.4
  25. - 5.3
  26. steps:
  27. - uses: actions/checkout@v2
  28. - uses: shivammathur/setup-php@v2
  29. with:
  30. php-version: ${{ matrix.php }}
  31. extensions: sockets
  32. coverage: xdebug
  33. - run: composer install
  34. - run: vendor/bin/phpunit --coverage-text
  35. if: ${{ matrix.php >= 7.3 }}
  36. - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
  37. if: ${{ matrix.php < 7.3 }}