File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ jobs:
113113
114114 - name : Run redis with a password
115115 run : |
116- docker run --rm --name redis -p $REDIS_PORT:6379 -d redis:${{ matrix.redis-versions }} redis-server --requirepass "secret" --port 6379
116+ docker run --rm --name redis -p $REDIS_PORT:6380 -d redis:${{ matrix.redis-versions }} redis-server --requirepass "secret" --port 6379
117117
118118 - name : Install dependencies
119119 run : |
@@ -124,4 +124,6 @@ jobs:
124124 run : docker ps -a
125125
126126 - name : Execute tests
127- run : vendor/bin/phpunit --exclude-group=redis-insecure
127+ run : vendor/bin/phpunit --exclude-group=redis-insecure\
128+ env :
129+ REDIS_PORT : 6380
Original file line number Diff line number Diff line change @@ -104,6 +104,6 @@ protected function getRedisHost()
104104 */
105105 protected function getRedisPort ()
106106 {
107- return (int ) ($ _ENV ['REDIS_PORT ' ] ?? 6380 );
107+ return (int ) ($ _ENV ['REDIS_PORT ' ] ?? 6379 );
108108 }
109109}
Original file line number Diff line number Diff line change @@ -90,6 +90,6 @@ protected function getRedisHost()
9090 */
9191 protected function getRedisPort ()
9292 {
93- return (int ) ($ _ENV ['REDIS_PORT ' ] ?? 6380 );
93+ return (int ) ($ _ENV ['REDIS_PORT ' ] ?? 6379 );
9494 }
9595}
You can’t perform that action at this time.
0 commit comments