tests.yml 1014 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: tests
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths-ignore:
  7. - 'README.md'
  8. pull_request:
  9. branches:
  10. - master
  11. paths-ignore:
  12. - 'README.md'
  13. jobs:
  14. linux_tests:
  15. runs-on: ubuntu-22.04
  16. strategy:
  17. fail-fast: true
  18. matrix:
  19. php: ['7.3', '7.4', '8.0', '8.1']
  20. stability: [prefer-lowest, prefer-stable]
  21. name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
  22. steps:
  23. - name: Checkout code
  24. uses: actions/checkout@v3
  25. - name: Setup PHP
  26. uses: shivammathur/setup-php@v2
  27. with:
  28. php-version: ${{ matrix.php }}
  29. extensions: openssl, hash
  30. ini-values: error_reporting=E_ALL
  31. tools: composer:v2
  32. coverage: none
  33. - name: Install Composer dependencies
  34. run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
  35. - name: Execute tests
  36. run: vendor/bin/phpunit --verbose