Skip to content

Commit 47a8b4c

Browse files
committed
Fix ci
1 parent 04ca665 commit 47a8b4c

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ jobs:
3030
--health-retries 5
3131
ports:
3232
- 52568:6379
33+
rebloom:
34+
image: redislabs/rebloom:edge
35+
options: >-
36+
--health-cmd "redis-cli ping"
37+
--health-interval 10s
38+
--health-timeout 5s
39+
--health-retries 5
40+
ports:
41+
- 6379:6379
3342
steps:
3443
- uses: actions/checkout@v2
3544
- name: Set up JDK 1.8
@@ -44,5 +53,5 @@ jobs:
4453
restore-keys: |
4554
${{ runner.os }}-maven-
4655
- name: Build with Maven
47-
run: mvn clean install -DREDIS_HOST=localhost -DREDIS_PORT=52567 -DREDISAI_PORT=52568 -Dgpg.skip --file pom.xml
56+
run: mvn clean install -DREDIS_HOST=localhost -DREDIS_PORT=52567 -DREDISAI_PORT=52568 -DREDISBLOOM_PORT=6379 -Dgpg.skip --file pom.xml
4857
- uses: codecov/codecov-action@v1

redisbloom/src/test/java/io/github/dengliming/redismodule/redisbloom/AbstractTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 dengliming.
2+
* Copyright 2020-2022 dengliming.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,7 +32,8 @@ public abstract class AbstractTest {
3232
@BeforeEach
3333
public void init() {
3434
Config config = new Config();
35-
config.useSingleServer().setAddress("redis://" + TestSettings.host() + ":" + TestSettings.port());
35+
config.useSingleServer().setAddress("redis://" + TestSettings.host() + ":" + System.getProperty("REDISBLOOM_PORT"
36+
, TestSettings.port() + ""));
3637
redisBloomClient = new RedisBloomClient(config);
3738
redisBloomClient.flushall();
3839
}

0 commit comments

Comments
 (0)