ci.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. name: CI
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. PHPUnit:
  7. name: PHPUnit (PHP ${{ matrix.php }})
  8. runs-on: ubuntu-22.04
  9. strategy:
  10. matrix:
  11. php:
  12. - 8.3
  13. - 8.2
  14. - 8.1
  15. - 8.0
  16. - 7.4
  17. - 7.3
  18. - 7.2
  19. - 7.1
  20. - 7.0
  21. - 5.6
  22. - 5.5
  23. - 5.4
  24. - 5.3
  25. steps:
  26. - uses: actions/checkout@v4
  27. - uses: shivammathur/setup-php@v2
  28. with:
  29. php-version: ${{ matrix.php }}
  30. coverage: xdebug
  31. ini-file: development
  32. - run: composer install
  33. - run: vendor/bin/phpunit --coverage-text
  34. if: ${{ matrix.php >= 7.3 }}
  35. - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
  36. if: ${{ matrix.php < 7.3 }}
  37. PHPUnit-macOS:
  38. name: PHPUnit (macOS)
  39. runs-on: macos-12
  40. continue-on-error: true
  41. steps:
  42. - uses: actions/checkout@v4
  43. - uses: shivammathur/setup-php@v2
  44. with:
  45. php-version: 8.2
  46. coverage: xdebug
  47. ini-file: development
  48. - run: composer install
  49. - run: vendor/bin/phpunit --coverage-text
  50. PHPUnit-hhvm:
  51. name: PHPUnit (HHVM)
  52. runs-on: ubuntu-22.04
  53. continue-on-error: true
  54. steps:
  55. - uses: actions/checkout@v4
  56. - run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
  57. - name: Run hhvm composer.phar install
  58. uses: docker://hhvm/hhvm:3.30-lts-latest
  59. with:
  60. args: hhvm composer.phar install
  61. - name: Run hhvm vendor/bin/phpunit
  62. uses: docker://hhvm/hhvm:3.30-lts-latest
  63. with:
  64. args: hhvm vendor/bin/phpunit