feat: framework refactor + decouple from Hyperf #31
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: | |
| 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: 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: Execute Redis integration tests | |
| env: | |
| REDIS_HOST: redis | |
| REDIS_PORT: 6379 | |
| REDIS_DB: 8 | |
| run: | | |
| vendor/bin/phpunit tests/Integration/Cache/Redis | |
| 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: 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: Execute Redis integration tests | |
| env: | |
| REDIS_HOST: valkey | |
| REDIS_PORT: 6379 | |
| REDIS_DB: 8 | |
| run: | | |
| vendor/bin/phpunit tests/Integration/Cache/Redis | |
| vendor/bin/phpunit tests/Integration/Redis |