Skip to content

Commit 4337f84

Browse files
committed
CI: add Redis service
1 parent c41a19a commit 4337f84

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/test.yml

+13
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ jobs:
1111
test:
1212
runs-on: ubuntu-latest
1313

14+
services:
15+
redis:
16+
image: redis
17+
# Set health checks to wait until redis has started
18+
options: >-
19+
--health-cmd "redis-cli ping"
20+
--health-interval 10s
21+
--health-timeout 5s
22+
--health-retries 5
23+
ports:
24+
# Maps port 6379 on service container to the host
25+
- 6379:6379
26+
1427
steps:
1528
- uses: actions/checkout@v4
1629
- name: Set up Python

0 commit comments

Comments
 (0)