Skip to content

Commit

Permalink
ci: try localhost for redis
Browse files Browse the repository at this point in the history
  • Loading branch information
bugslifesolutions committed Nov 1, 2023
1 parent 6a0f874 commit 86fcebe
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ integration: &integration
<<: *env
docker:
- image: cimg/node:18.18.2
- image: redis
# Integration tests need MongoDB server running and accessible on port 27017
- image: mongo:4.0
name: mongo
command: mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger
- image: redis
name: redis2

initialize_mongo: &initialize_mongo
- run:
Expand Down Expand Up @@ -136,12 +135,10 @@ jobs:
environment:
MONGO_URL: mongodb://mongo:27017/test
MONGO_USE_UNIFIED_TOPOLOGY: false
REDIS_CONTAINER: redis2
REDIS_SERVER: redis://redis2:6379
REDIS_SERVER: redis://localhost:6379
command: |
echo "MONGO_URL: $MONGO_URL"
echo "REDIS_SERVER: $REDIS_SERVER"
echo "REDIS_CONTAINER: $REDIS_CONTAINER"
pnpm run env
pnpm run test:integration:query
resource_class: large
Expand All @@ -164,12 +161,10 @@ jobs:
environment:
MONGO_URL: mongodb://mongo:27017/test
MONGO_USE_UNIFIED_TOPOLOGY: false
REDIS_CONTAINER: redis2
REDIS_SERVER: redis://redis2:6379
REDIS_SERVER: redis://localhost:6379
command: |
echo "MONGO_URL: $MONGO_URL"
echo "REDIS_SERVER: $REDIS_SERVER"
echo "REDIS_CONTAINER: $REDIS_CONTAINER"
pnpm run env
pnpm run test:integration:mutation1
resource_class: large
Expand All @@ -192,12 +187,10 @@ jobs:
environment:
MONGO_URL: mongodb://mongo:27017/test
MONGO_USE_UNIFIED_TOPOLOGY: false
REDIS_CONTAINER: redis2
REDIS_SERVER: redis://redis2:6379
REDIS_SERVER: redis://localhost:6379
command: |
echo "MONGO_URL: $MONGO_URL"
echo "REDIS_SERVER: $REDIS_SERVER"
echo "REDIS_CONTAINER: $REDIS_CONTAINER"
pnpm run env
pnpm run test:integration:mutation2
resource_class: large
Expand Down

0 comments on commit 86fcebe

Please sign in to comment.