Nessuna descrizione

tests.yml 887B

123456789101112131415161718192021222324252627282930313233343536373839
  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