File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 2929 ports :
3030 - 5432:5432
3131
32+ env :
33+ # The hostname used to communicate with the Redis/Sentinel service containers
34+ REDIS_HOST : redis
35+ REDIS_SENTINEL_HOST : redis-sentinel
36+ # The default Redis port
37+ REDIS_PORT : 6379
38+ REDIS_SENTINEL_PORT : 6379
39+ # MySQL
40+ DB_DATABASE : test
41+ DB_USER : root
42+ DB_PASSWORD : root
43+
3244 steps :
3345 - name : Checkout code
3446 uses : actions/checkout@v4
6072 redis-version : ${{ matrix.redis-version }}
6173
6274 - name : Start Redis Sentinel
63- run : docker run -d --name redis-sentinel --link redis:redis -v $PWD/sentinel.conf:/sentinel.conf redis:${{ matrix.redis-version }} redis-server sentinel.conf --sentinel
75+ run : docker run -d --name $REDIS_SENTINEL_HOST --link redis:redis -v $PWD/sentinel.conf:/sentinel.conf redis:${{ matrix.redis-version }} redis-server sentinel.conf --sentinel
6476
6577 - name : Execute tests (PDO with Sqlite)
6678 run : vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments