run-tests.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: Tests
  2. on:
  3. push:
  4. branches: [master, vNext]
  5. pull_request:
  6. jobs:
  7. test:
  8. runs-on: ubuntu-latest
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. php:
  13. - '8.4'
  14. - '8.3'
  15. - '8.2'
  16. - '8.1'
  17. deps:
  18. - highest
  19. include:
  20. - {php: '8.1', deps: lowest}
  21. name: Tests (PHP ${{ matrix.php }} - ${{ matrix.deps }})
  22. steps:
  23. - uses: actions/checkout@v3
  24. - name: Setup PHP ${{ matrix.php }}
  25. uses: shivammathur/setup-php@v2
  26. with:
  27. php-version: ${{ matrix.php }}
  28. extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
  29. coverage: xdebug
  30. - name: Install dependencies
  31. if: ${{ matrix.deps == 'highest' }}
  32. run: composer update
  33. - name: Install dependencies (lowest)
  34. if: ${{ matrix.deps == 'lowest' }}
  35. run: COMPOSER=composer.lowest.json composer update --prefer-stable
  36. - name: Execute tests (Laravel)
  37. run: composer test-ci
  38. if: ${{ matrix.deps == 'highest' }}
  39. - name: Execute tests (Lowest)
  40. run: COMPOSER=composer.lowest.json composer test-ci
  41. if: ${{ matrix.deps == 'lowest' }}