Skip to content

Complete Redis cache driver refactor with enhanced tagging #5

Complete Redis cache driver refactor with enhanced tagging

Complete Redis cache driver refactor with enhanced tagging #5

Workflow file for this run

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
container:
image: phpswoole/swoole:6.1.4-php8.4
strategy:
fail-fast: true
name: Redis 8
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache Composer dependencies
uses: actions/cache@v4
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/Redis/Integration
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
container:
image: phpswoole/swoole:6.1.4-php8.4
strategy:
fail-fast: true
name: Valkey 9
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache Composer dependencies
uses: actions/cache@v4
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/Redis/Integration