Skip to content

ci: flyway 검증 설정 수정 #4

ci: flyway 검증 설정 수정

ci: flyway 검증 설정 수정 #4

name: dev flyway 검증
on:
pull_request:
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
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: Create flyway.conf
run: |
touch flyway.conf
echo "flyway.url=${{ secrets.DEV_DATASOURCE_URL }}" >> flyway.conf
echo "flyway.user=${{ secrets.DEV_DATASOURCE_USERNAME }}" >> flyway.conf
echo "flyway.password=${{ secrets.DEV_DATASOURCE_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
- name: flywayValidate
cd backend/ddang

Check failure on line 48 in .github/workflows/backend_dev_flyway.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/backend_dev_flyway.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
run: ./gradlew -Dflyway.configFiles=flyway.conf flywayValidate --stacktrace
working-directory: ./backend