ci.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: CI
  2. on:
  3. pull_request:
  4. push:
  5. jobs:
  6. test:
  7. name: 'Test ${{ matrix.deps }} on PHP ${{ matrix.php }}'
  8. runs-on: ubuntu-latest
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. php: ['7.1.3', '7.2', '7.3', '7.4', '8.0', '8.1']
  13. include:
  14. - php: '7.4'
  15. deps: lowest
  16. deprecations: max[self]=0
  17. - php: '8.0'
  18. deps: highest
  19. deprecations: max[indirect]=5
  20. steps:
  21. - name: Checkout code
  22. uses: actions/checkout@v2
  23. - name: Setup PHP
  24. uses: shivammathur/setup-php@v2
  25. with:
  26. php-version: '${{ matrix.php }}'
  27. coverage: none
  28. - name: Configure composer
  29. if: "${{ matrix.deps == 'highest' }}"
  30. run: composer config minimum-stability dev
  31. - name: Composer install
  32. uses: ramsey/composer-install@v1
  33. with:
  34. dependency-versions: '${{ matrix.deps }}'
  35. - name: Install PHPUnit
  36. run: vendor/bin/simple-phpunit install
  37. - name: Run tests
  38. run: vendor/bin/simple-phpunit
  39. env:
  40. SYMFONY_DEPRECATIONS_HELPER: '${{ matrix.deprecations }}'