Skip to content

Commit

Permalink
Merge pull request #391 from flyway/support-multiple-flyway-version
Browse files Browse the repository at this point in the history
Set up CI to support multiple flyway versions
  • Loading branch information
tototoshi authored Apr 25, 2024
2 parents 5c01ec6 + 573be12 commit 2065803
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
flyway-version:
- "9.16.0"
- "9.22.0"
java-version:
- "11"

steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
java-version: ${{ matrix.java-version }}
- name: Run tests
run: sbt +test
run: FLYWAY_PLAY_FLYWAY_VERSION=${{ matrix.flyway-version }} sbt +test
4 changes: 3 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ val flywayPlayVersion = "9.0.0"
val scalaVersion_2_13 = "2.13.13"
val scalaVersion_3 = "3.3.3"

val flywayVersion = "9.16.3"
val defaultFlywayVersion = "9.16.3"
val flywayVersion = sys.env.getOrElse("FLYWAY_PLAY_FLYWAY_VERSION", defaultFlywayVersion)

val scalikejdbcVersion = "4.2.1"

val scalatest = "org.scalatest" %% "scalatest" % "3.2.18" % "test"
Expand Down

0 comments on commit 2065803

Please sign in to comment.