Fix README: completed jobs also don't show in Horizon #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: [8.1, 8.2, 8.3, 8.4] | |
| laravel: [10.*, 11.*, 12.*] | |
| exclude: | |
| - php: 8.1 | |
| laravel: 11.* | |
| - php: 8.1 | |
| laravel: 12.* | |
| name: PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: redis | |
| coverage: none | |
| - name: Install dependencies | |
| run: | | |
| composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update | |
| composer update --prefer-dist --no-interaction | |
| - name: Run unit tests | |
| run: vendor/bin/phpunit --testsuite=Feature,Unit --no-coverage | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| services: | |
| redis: | |
| image: redis:7-alpine | |
| ports: | |
| - 6379:6379 | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| name: Integration Tests | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.3 | |
| extensions: redis | |
| coverage: none | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-interaction | |
| - name: Run integration tests | |
| env: | |
| REDIS_INTEGRATION: 1 | |
| REDIS_HOST: 127.0.0.1 | |
| REDIS_PORT: 6379 | |
| run: vendor/bin/phpunit --testsuite=Integration --no-coverage |