tests.yml 858 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Tests
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. tests:
  7. name: PHP ${{ matrix.php }}
  8. runs-on: ubuntu-22.04
  9. strategy:
  10. matrix:
  11. php: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
  12. steps:
  13. - name: Checkout Code
  14. uses: actions/checkout@v3
  15. - name: Setup PHP
  16. uses: shivammathur/setup-php@v2
  17. with:
  18. php-version: ${{ matrix.php }}
  19. tools: composer:v2
  20. coverage: none
  21. - name: Setup Problem Matchers
  22. run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
  23. - name: Install Dependencies
  24. uses: nick-invision/retry@v2
  25. with:
  26. timeout_minutes: 5
  27. max_attempts: 5
  28. command: composer update --no-interaction --no-progress
  29. - name: Execute PHPUnit
  30. run: vendor/bin/phpunit