tests.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: tests
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - '*.x'
  7. pull_request:
  8. schedule:
  9. - cron: '0 0 * * *'
  10. jobs:
  11. linux_tests:
  12. runs-on: ubuntu-20.04
  13. strategy:
  14. fail-fast: true
  15. matrix:
  16. php: [7.3, 7.4, '8.0', 8.1, 8.2, 8.3]
  17. name: PHP ${{ matrix.php }}
  18. steps:
  19. - name: Checkout code
  20. uses: actions/checkout@v4
  21. - name: Setup PHP
  22. uses: shivammathur/setup-php@v2
  23. with:
  24. php-version: ${{ matrix.php }}
  25. ini-values: error_reporting=E_ALL
  26. tools: composer:v2
  27. coverage: none
  28. - name: Setup Problem Matches
  29. run: |
  30. echo "::add-matcher::${{ runner.tool_cache }}/php.json"
  31. echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
  32. - name: Install PHP dependencies
  33. run: composer update --prefer-stable --no-interaction --no-progress
  34. - name: Execute tests
  35. run: vendor/bin/pest tests/Php73Test.php
  36. if: matrix.php == 7.3
  37. - name: Execute tests
  38. run: vendor/bin/pest
  39. if: matrix.php > 7.3