-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop-be' into feature/677
# Conflicts: # backend/ddang/src/main/resources/static/docs/docs.html
- Loading branch information
Showing
5 changed files
with
85 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: flyway 스크립트 검증 | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'backend/ddang/src/main/resources/db/migration/**.sql' | ||
types: [opened, reopened, synchronize] | ||
branches: [develop-be] | ||
|
||
permissions: write-all | ||
jobs: | ||
build: | ||
if: contains(github.event.pull_request.labels.*.name, 'backend') | ||
runs-on: ubuntu-latest | ||
services: | ||
mysql: | ||
image: mysql:latest | ||
env: | ||
MYSQL_ROOT_PASSWORD: password | ||
MYSQL_DATABASE: testdb | ||
MYSQL_USER: test | ||
MYSQL_PASSWORD: password | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: settings java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: cache gradle | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: chmod gradle | ||
run: chmod +x backend/ddang/gradlew | ||
|
||
- name: Wait for MySQL to be ready | ||
run: | | ||
while [ -z "$DATABASE_URL" ]; do | ||
echo "Waiting for MySQL to be ready..." | ||
export DATABASE_URL=$(echo "SELECT 'ready';" | mysql -h127.0.0.1 -P3306 -utest -ppassword testdb --skip-column-names 2>/dev/null) | ||
sleep 1 | ||
done | ||
- name: Create flyway.conf | ||
run: | | ||
touch flyway.conf | ||
echo "flyway.driver=com.mysql.cj.jdbc.Driver" >> flyway.conf | ||
echo "flyway.url=jdbc:mysql://127.0.0.1:3306/testdb" >> flyway.conf | ||
echo "flyway.user=test" >> flyway.conf | ||
echo "flyway.password=password" >> flyway.conf | ||
echo "flyway.encoding=UTF-8" >> flyway.conf | ||
echo "flyway.locations=filesystem:src/main/resources/db/migration" >> flyway.conf | ||
echo "flyway.validateOnMigrate=true" >> flyway.conf | ||
working-directory: ./backend/ddang | ||
|
||
- name: flywayValidate | ||
run: | | ||
./gradlew -Dflyway.configFiles=flyway.conf flywayMigrate --stacktrace | ||
working-directory: ./backend/ddang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 0 additions & 49 deletions
49
...in/java/com/ddang/ddang/configuration/initialization/InitializationUserConfiguration.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,10 +29,6 @@ data: | |
init: | ||
region: | ||
enabled: false | ||
auction: | ||
enabled: false | ||
user: | ||
enabled: false | ||
|
||
image: | ||
store: | ||
|