You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
887 B

3 years ago
  1. name: tests
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. tests:
  7. runs-on: ubuntu-latest
  8. strategy:
  9. matrix:
  10. php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
  11. name: PHP ${{ matrix.php }}
  12. steps:
  13. - name: Checkout code
  14. uses: actions/checkout@v2
  15. - name: Setup PHP
  16. uses: shivammathur/setup-php@v2
  17. with:
  18. php-version: ${{ matrix.php }}
  19. extensions: curl
  20. tools: composer:v2
  21. coverage: none
  22. - name: Install PHP 7 dependencies
  23. run: composer update --prefer-dist --no-interaction --no-progress
  24. if: "matrix.php != '8.0'"
  25. - name: Install PHP 8 dependencies
  26. run: composer update --prefer-dist --no-interaction --no-progress --ignore-platform-reqs
  27. if: "matrix.php == '8.0'"
  28. - name: Execute tests
  29. run: vendor/bin/phpunit -c tests/phpunit.xml.dist