Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: add multiple extraArgs fails to parse #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/flyway.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Flyway Migrations

on:
pull_request:
branches:
- main
paths:
- 'flyway/**'
- '.github/workflows/flyway.yml'


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
migrate-dry-run:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
container: ubuntu:22.04
strategy:
fail-fast: false
matrix:
mysql_version: [5.7, 8.0]
services:
mysql:
image: mysql:${{ matrix.mysql_version }}
env:
MYSQL_USER: flyway
MYSQL_PASSWORD: flyway
MYSQL_ROOT_PASSWORD: flyway
MYSQL_DATABASE: flyway
ports:
- 3306:3306
options: >-
--health-cmd="mysql -h 127.0.0.1 -P 3306 -uflyway -pflyway -e 'SELECT 1'"
--health-interval=10s
--health-timeout=5s
--health-retries=5

steps:
- name: Checkout
id: checkout
uses: actions/[email protected]
with:
sparse-checkout: 'flyway'
sparse-checkout-cone-mode: false

- name: Flyway Migrate for MySQL ${{ matrix.mysql_version }}
uses: red-gate/[email protected]
with:
url: jdbc:mysql://mysql:3306/flyway?allowPublicKeyRetrieval=true&useSSL=false
user: root
password: flyway
locations: filesystem:./flyway
extraArgs: -validateMigrationNaming=true -baselineVersion=1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.idea/
Empty file added flyway/V1__dummy.sql
Empty file.