run-tests.yml 774 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: Unit Tests
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. branches:
  8. - "**"
  9. schedule:
  10. - cron: '0 0 * * *'
  11. jobs:
  12. php-tests:
  13. runs-on: ubuntu-latest
  14. timeout-minutes: 15
  15. env:
  16. COMPOSER_NO_INTERACTION: 1
  17. strategy:
  18. fail-fast: false
  19. matrix:
  20. php: [8.0, 8.1, 8.2, 8.3, 8.4]
  21. name: PHP${{ matrix.php }}
  22. steps:
  23. - name: Checkout code
  24. uses: actions/checkout@v2
  25. - name: Setup PHP
  26. uses: shivammathur/setup-php@v2
  27. with:
  28. php-version: ${{ matrix.php }}
  29. coverage: none
  30. tools: composer:v2
  31. - name: Install dependencies
  32. run: |
  33. composer install -o --quiet
  34. - name: Execute Unit Tests
  35. run: composer test