Skip to content

Commit c4579e6

Browse files
committed
Chore: CI 환경에서 Redis 추가
1 parent dfd6283 commit c4579e6

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/backend-ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ jobs:
1212
build-and-test:
1313
runs-on: ubuntu-latest
1414

15+
services:
16+
redis:
17+
image: redis:7.2
18+
ports:
19+
- 6379:6379
20+
options: >-
21+
--health-cmd "redis-cli ping"
22+
--health-interval 10s
23+
--health-timeout 5s
24+
--health-retries 5
25+
1526
steps:
1627
# 저장소 체크아웃
1728
- name: Checkout repository

src/main/resources/application-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ spring:
55
username: sa
66
password:
77

8+
data:
9+
redis:
10+
host: ${SPRING_REDIS_HOST:localhost}
11+
port: ${SPRING_REDIS_PORT:6379}
12+
813
security:
914
oauth2:
1015
client:

0 commit comments

Comments
 (0)