Skip to content

Commit 3cf16aa

Browse files
committed
ci: try to use services to run tests
1 parent ad18f21 commit 3cf16aa

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ jobs:
1010
strategy:
1111
matrix:
1212
node-version: ["lts/iron", "lts/jod", "latest"]
13+
redis-version: [6, 7, "latest"]
14+
15+
services:
16+
redis:
17+
image: grokzen/redis-cluster:${{ matrix.redis-version }}
18+
env:
19+
REDIS_CLUSTER_IP: 0.0.0.0
20+
IP: 0.0.0.0
21+
STANDALONE: 'true'
22+
ports:
23+
- "7000-7005:7000-7005"
1324

1425
steps:
1526
- name: Checkout code
@@ -24,4 +35,4 @@ jobs:
2435
run: npm install
2536

2637
- name: Run tests
27-
run: npm run test:docker
38+
run: npm run test

compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
redis:
33
platform: linux/x86_64
4-
image: grokzen/redis-cluster:6.2.10
4+
image: grokzen/redis-cluster:latest
55
ports:
66
- "7000-7005:7000-7005"
77
environment:

0 commit comments

Comments
 (0)