Skip to content

Commit

Permalink
ci: flyway ci 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ503 authored Nov 2, 2023
1 parent 4eee187 commit d83745b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/backend_dev_flyway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@ jobs:
MYSQL_PASSWORD: password
ports:
- 7777:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: actions/checkout@v3

- name: Start Docker Compose
run: docker-compose up -d

- name: Check MySQL Connection
run: |
mysql -h localhost -P 7777 -u test -ppassword -e "SELECT 1"

- name: settings java
uses: actions/setup-java@v3
Expand Down Expand Up @@ -69,6 +63,6 @@ jobs:
./gradlew -Dflyway.configFiles=flyway.conf flywayValidate --stacktrace
working-directory: ./backend/ddang

- name: Stop Docker Compose
run: docker-compose down
- name: Stop MySQL
run: docker stop mysql

0 comments on commit d83745b

Please sign in to comment.