Skip to content

Commit 2478670

Browse files
authored
Merge pull request #49 from CoLearn-Dev/redis-stream
MQ alternative: redis stream
2 parents c7f779c + 9d34994 commit 2478670

16 files changed

+666
-209
lines changed

.github/workflows/check.yml

+19-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,24 @@ jobs:
1212
defaults:
1313
run:
1414
shell: bash
15+
strategy:
16+
matrix:
17+
mq: [rabbitmq, redis]
18+
include:
19+
- mq: rabbitmq
20+
docker_image: "rabbitmq:3.8-management"
21+
mq_uri: "amqp://guest:guest@localhost"
22+
mq_api: "http://guest:guest@localhost:15672/api"
23+
- mq: redis
24+
docker_image: "redis"
25+
mq_uri: "redis://localhost"
1526
services:
16-
rabbitmq:
17-
image: rabbitmq:3.8-management
27+
mq:
28+
image: ${{ matrix.docker_image }}
1829
ports:
19-
- 5672:5672
20-
- 15672:15672
30+
- 5672:5672 # rabbitmq
31+
- 15672:15672 # rabbitmq
32+
- 6379:6379 # redis
2133
steps:
2234
- name: Checkout
2335
uses: actions/checkout@v3
@@ -36,4 +48,7 @@ jobs:
3648
- name: Clippy test
3749
run: cargo clippy --profile test -- -D warnings -D clippy::dbg_macro
3850
- name: Run tests
51+
env:
52+
COLINK_SERVER_MQ_URI: ${{ matrix.mq_uri }}
53+
COLINK_SERVER_MQ_API: ${{ matrix.mq_api }}
3954
run: cargo test

0 commit comments

Comments
 (0)