feat: framework refactor + decouple from Hyperf #217
Workflow file for this run
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: redis | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| RUN_BLOCKING_TESTS: true | |
| jobs: | |
| redis_8: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| services: | |
| redis: | |
| image: redis:8 | |
| ports: | |
| - 6379:6379 | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| # Swoole 6.1+ required for phpredis 6.3.0+ (HSETEX support for "any" tag mode) | |
| container: | |
| image: phpswoole/swoole:6.1.4-php8.4 | |
| strategy: | |
| fail-fast: true | |
| name: Redis 8 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Log trigger context | |
| uses: ./.github/actions/log-trigger-context | |
| - name: Setup PHP extensions | |
| uses: ./.github/actions/setup-php | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: /root/.composer/cache | |
| key: composer-8.4-${{ hashFiles('composer.lock') }} | |
| restore-keys: composer-8.4- | |
| - name: Install dependencies | |
| run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist -n -o | |
| - name: Install procps for Horizon process tests | |
| run: apt-get update -qq && apt-get install -y -qq --no-install-recommends procps > /dev/null | |
| - name: Execute Redis integration tests | |
| env: | |
| REDIS_HOST: redis | |
| REDIS_PORT: 6379 | |
| run: | | |
| vendor/bin/phpunit tests/Integration/Cache/Redis | |
| vendor/bin/phpunit tests/Integration/Horizon | |
| vendor/bin/phpunit tests/Integration/Redis | |
| valkey_9: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| services: | |
| valkey: | |
| image: valkey/valkey:9 | |
| ports: | |
| - 6379:6379 | |
| options: >- | |
| --health-cmd "valkey-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| # Swoole 6.1+ required for phpredis 6.3.0+ (HSETEX support for "any" tag mode) | |
| container: | |
| image: phpswoole/swoole:6.1.4-php8.4 | |
| strategy: | |
| fail-fast: true | |
| name: Valkey 9 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Log trigger context | |
| uses: ./.github/actions/log-trigger-context | |
| - name: Setup PHP extensions | |
| uses: ./.github/actions/setup-php | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: /root/.composer/cache | |
| key: composer-8.4-${{ hashFiles('composer.lock') }} | |
| restore-keys: composer-8.4- | |
| - name: Install dependencies | |
| run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist -n -o | |
| - name: Install procps for Horizon process tests | |
| run: apt-get update -qq && apt-get install -y -qq --no-install-recommends procps > /dev/null | |
| - name: Execute Redis integration tests | |
| env: | |
| REDIS_HOST: valkey | |
| REDIS_PORT: 6379 | |
| run: | | |
| vendor/bin/phpunit tests/Integration/Cache/Redis | |
| vendor/bin/phpunit tests/Integration/Horizon | |
| vendor/bin/phpunit tests/Integration/Redis |