Skip to content

Commit 79439d1

Browse files
committed
Infra: CI 빌드 환경 추가
- 운영환경에 맞춰 CI 환경 MySQL 서비스 추가
1 parent 4e8a872 commit 79439d1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/backend-ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ jobs:
1818
ports:
1919
- 6379:6379
2020

21+
mysql:
22+
if: github.base_ref == 'main'
23+
image: mysql:8
24+
ports:
25+
- 3306:3306
26+
env:
27+
MYSQL_ROOT_PASSWORD: root
28+
MYSQL_DATABASE: testdb
29+
options: >-
30+
--health-cmd="mysqladmin ping -h localhost -p$MYSQL_ROOT_PASSWORD"
31+
--health-interval=10s
32+
--health-timeout=5s
33+
--health-retries=3
34+
2135
steps:
2236
# 저장소 체크아웃
2337
- name: Checkout repository

0 commit comments

Comments
 (0)