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.

tests.yml 935B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: Tests
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - '*.x'
  7. pull_request:
  8. schedule:
  9. - cron: '0 0 * * *'
  10. permissions:
  11. contents: read
  12. jobs:
  13. tests:
  14. runs-on: ubuntu-latest
  15. strategy:
  16. fail-fast: true
  17. matrix:
  18. php: [8.2, 8.3, 8.4]
  19. name: PHP ${{ matrix.php }}
  20. steps:
  21. - name: Checkout code
  22. uses: actions/checkout@v4
  23. - name: Setup PHP
  24. uses: shivammathur/setup-php@v2
  25. with:
  26. php-version: ${{ matrix.php }}
  27. extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
  28. coverage: none
  29. - name: Install Composer dependencies
  30. run: composer install --prefer-dist --no-interaction --no-progress
  31. - name: Copy environment file
  32. run: cp .env.example .env
  33. - name: Generate app key
  34. run: php artisan key:generate
  35. - name: Execute tests
  36. run: vendor/bin/phpunit