ci.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: CI
  2. on:
  3. push:
  4. branches:
  5. pull_request:
  6. permissions:
  7. contents: read
  8. jobs:
  9. build-lowest-version:
  10. name: Build lowest version
  11. runs-on: ubuntu-22.04
  12. steps:
  13. - name: Set up PHP
  14. uses: shivammathur/setup-php@v2
  15. with:
  16. php-version: '7.2'
  17. ini-values: error_reporting=E_ALL
  18. coverage: 'none'
  19. extensions: mbstring
  20. - name: Checkout code
  21. uses: actions/checkout@v4
  22. - name: Install dependencies
  23. run: composer update --no-interaction --prefer-stable --prefer-lowest --no-progress
  24. - name: Run tests
  25. run: vendor/bin/phpunit
  26. build:
  27. name: Build
  28. runs-on: ubuntu-22.04
  29. strategy:
  30. max-parallel: 10
  31. matrix:
  32. php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
  33. steps:
  34. - name: Set up PHP
  35. uses: shivammathur/setup-php@v2
  36. with:
  37. php-version: ${{ matrix.php }}
  38. ini-values: error_reporting=E_ALL
  39. coverage: 'none'
  40. extensions: mbstring
  41. - name: Checkout code
  42. uses: actions/checkout@v4
  43. - name: Install dependencies
  44. run: composer update --no-interaction --no-progress
  45. - name: Run tests
  46. run: vendor/bin/phpunit