Skip to content

Commit 96da3c6

Browse files
committed
tests
1 parent 24206a6 commit 96da3c6

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ jobs:
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
@@ -60,7 +72,7 @@ jobs:
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

0 commit comments

Comments
 (0)