Skip to content

Commit 66c60d9

Browse files
committed
ci[Github-Action]: CI-CD 테스트 환경용 yml 추가
1 parent ac09074 commit 66c60d9

File tree

3 files changed

+72
-2
lines changed

3 files changed

+72
-2
lines changed

.github/workflows/CI-CD_Pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
runs-on: ${{ matrix.os }}
2828
env:
29-
SPRING_PROFILES_ACTIVE: test
29+
SPRING_PROFILES_ACTIVE: test-ci
3030

3131
# ✅ Redis 서비스 추가
3232
services:

backend/src/test/resources/application-test.yml renamed to backend/src/test/resources/application-test-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
spring:
22
application:
3-
name: back-test
3+
name: test-ci
44
output:
55
ansi:
66
enabled: always
@@ -21,6 +21,7 @@ spring:
2121
format_sql: true
2222
highlight_sql: true
2323

24+
# CI/CD 환경: 실제 Redis 서비스 사용
2425
data:
2526
redis:
2627
host: ${TEST_REDIS_HOST}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
spring:
2+
application:
3+
name: test
4+
output:
5+
ansi:
6+
enabled: always
7+
8+
datasource:
9+
url: jdbc:h2:mem:db_test;MODE=MySQL
10+
username: sa
11+
password:
12+
driver-class-name: org.h2.Driver
13+
14+
jpa:
15+
show-sql: true
16+
hibernate:
17+
ddl-auto: create-drop
18+
properties:
19+
hibernate:
20+
use_sql_comments: true
21+
format_sql: true
22+
highlight_sql: true
23+
24+
# 로컬 환경: Embedded Redis 사용
25+
data:
26+
redis:
27+
port: 6370 # 기본 포트와 충돌 방지
28+
29+
security:
30+
oauth2:
31+
client:
32+
registration:
33+
kakao:
34+
client-id: test-kakao-client-id
35+
client-secret: test-kakao-client-secret
36+
client-name: Kakao
37+
scope: profile_nickname, account_email
38+
naver:
39+
client-id: test-naver-client-id
40+
client-secret: test-naver-client-secret
41+
client-name: Naver
42+
scope: profile, email
43+
provider:
44+
kakao:
45+
authorization-uri: https://kauth.kakao.com/oauth/authorize
46+
token-uri: https://kauth.kakao.com/oauth/token
47+
user-info-uri: https://kapi.kakao.com/v2/user/me
48+
user-name-attribute: id
49+
naver:
50+
authorization-uri: https://nid.naver.com/oauth2.0/authorize
51+
token-uri: https://nid.naver.com/oauth2.0/token
52+
user-info-uri: https://openapi.naver.com/v1/nid/me
53+
user-name-attribute: response
54+
55+
springdoc:
56+
default-produces-media-type: application/json;charset=UTF-8
57+
58+
logging:
59+
level:
60+
root: INFO
61+
org.springframework: INFO
62+
org.hibernate: INFO
63+
com.ai.lawyer: DEBUG
64+
65+
custom:
66+
jwt:
67+
secretKey: test-secret-key-for-local-testing-only
68+
accessToken:
69+
expirationSeconds: 3600

0 commit comments

Comments
 (0)