Skip to content

Commit 85a4074

Browse files
committed
ci: Reintroduce redis services at 6379
Signed-off-by: Achal Shah <achals@gmail.com>
1 parent ae133fd commit 85a4074

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/master_only.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ jobs:
6666
env:
6767
OS: ${{ matrix.os }}
6868
PYTHON: ${{ matrix.python-version }}
69+
services:
70+
redis:
71+
image: redis
72+
ports:
73+
- 6379:6379
74+
options: >-
75+
--health-cmd "redis-cli ping"
76+
--health-interval 10s
77+
--health-timeout 5s
78+
--health-retries 5
6979
steps:
7080
- uses: actions/checkout@v2
7181
- name: Setup Python

.github/workflows/pr_integration_tests.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,16 @@ jobs:
8484
env:
8585
OS: ${{ matrix.os }}
8686
PYTHON: ${{ matrix.python-version }}
87+
services:
88+
redis:
89+
image: redis
90+
ports:
91+
- 6379:6379
92+
options: >-
93+
--health-cmd "redis-cli ping"
94+
--health-interval 10s
95+
--health-timeout 5s
96+
--health-retries 5
8797
steps:
8898
- uses: actions/checkout@v2
8999
with:
@@ -92,11 +102,6 @@ jobs:
92102
# code from the PR.
93103
ref: refs/pull/${{ github.event.pull_request.number }}/merge
94104
submodules: recursive
95-
- name: Start Redis
96-
uses: supercharge/redis-github-action@1.4.0
97-
with:
98-
redis-version: ${{ matrix.redis-version }}
99-
redis-port: 12345
100105
- name: Setup Python
101106
uses: actions/setup-python@v2
102107
id: setup-python
@@ -147,6 +152,10 @@ jobs:
147152
run: |
148153
make compile-protos-go
149154
make install-python-ci-dependencies
155+
- name: Start Redis
156+
uses: supercharge/redis-github-action@1.4.0
157+
with:
158+
redis-port: 12345
150159
- name: Setup Redis Cluster
151160
run: |
152161
docker pull vishnunair/docker-redis-cluster:latest

0 commit comments

Comments
 (0)