File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ jobs:
100
100
POSTGRES_URL : postgres
101
101
REDIS_URL : redis
102
102
DATABASE_URL : " postgresql://admin:password@postgres:5432/protokit?schema=public"
103
+ REDIS_CI : true
103
104
104
105
services :
105
106
postgres :
@@ -112,8 +113,6 @@ jobs:
112
113
- 5432:5432
113
114
redis :
114
115
image : redis:6.2-alpine
115
- options : >-
116
- --requirepass password
117
116
ports :
118
117
- 6379:6379
119
118
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { RedisMerkleTreeStore } from "./services/redis/RedisMerkleTreeStore";
9
9
10
10
export interface RedisConnectionConfig {
11
11
host : string ;
12
- password : string ;
12
+ password ? : string ;
13
13
port ?: number ;
14
14
username ?: string ;
15
15
}
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ import {
31
31
32
32
const prismaUrl = process . env [ "POSTGRES_URL" ] ;
33
33
const redisUrl = process . env [ "REDIS_URL" ] ;
34
+ // We don't use the password for CI runs
35
+ const redisCI = process . env [ "REDIS_CI" ] ;
34
36
35
37
const prismaConfig = {
36
38
host : prismaUrl ?? "localhost" ,
@@ -45,7 +47,7 @@ const prismaConfig = {
45
47
const redisConfig = {
46
48
host : redisUrl ?? "localhost" ,
47
49
port : 6379 ,
48
- password : "password" ,
50
+ password : redisCI ? undefined : "password" ,
49
51
} ;
50
52
51
53
export const IntegrationTestDBConfig = {
You can’t perform that action at this time.
0 commit comments