File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 29
29
ports :
30
30
- 5432:5432
31
31
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
+
32
44
steps :
33
45
- name : Checkout code
34
46
uses : actions/checkout@v4
60
72
redis-version : ${{ matrix.redis-version }}
61
73
62
74
- 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
64
76
65
77
- name : Execute tests (PDO with Sqlite)
66
78
run : vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments