diff --git a/.github/workflows/integration-tests-cassandra.yml b/.github/workflows/integration-tests-cassandra.yml index 39bf45ef..a0214a26 100644 --- a/.github/workflows/integration-tests-cassandra.yml +++ b/.github/workflows/integration-tests-cassandra.yml @@ -48,4 +48,4 @@ jobs: - name: Print logs on failure if: ${{ failure() }} - run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; \ No newline at end of file + run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; diff --git a/.github/workflows/integration-tests-jdbc.yml b/.github/workflows/integration-tests-jdbc.yml index f298abea..92abc96b 100644 --- a/.github/workflows/integration-tests-jdbc.yml +++ b/.github/workflows/integration-tests-jdbc.yml @@ -18,7 +18,7 @@ jobs: - { java-version: 8, scala-version: 2.13, sbt-opts: '' } - { java-version: 11, scala-version: 2.13, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' } - { java-version: 8, scala-version: 2.12, sbt-opts: '' } - - { java-version: 11, scala-version: 2.12, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' } + - { java-version: 8, scala-version: 3.3, sbt-opts: '' } steps: - name: Checkout uses: actions/checkout@v4 @@ -52,4 +52,4 @@ jobs: - name: Print logs on failure if: ${{ failure() }} - run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; \ No newline at end of file + run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; diff --git a/.github/workflows/integration-tests-kafka.yml b/.github/workflows/integration-tests-kafka.yml index c0f1852d..c138f9f4 100644 --- a/.github/workflows/integration-tests-kafka.yml +++ b/.github/workflows/integration-tests-kafka.yml @@ -48,4 +48,4 @@ jobs: - name: Print logs on failure if: ${{ failure() }} - run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; \ No newline at end of file + run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; diff --git a/.github/workflows/integration-tests-slick.yml b/.github/workflows/integration-tests-slick.yml index 66547929..e01db26e 100644 --- a/.github/workflows/integration-tests-slick.yml +++ b/.github/workflows/integration-tests-slick.yml @@ -52,4 +52,4 @@ jobs: - name: Print logs on failure if: ${{ failure() }} - run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; \ No newline at end of file + run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; diff --git a/.github/workflows/nightly-pekko-1.0-tests.yml b/.github/workflows/nightly-pekko-1.0-tests.yml new file mode 100644 index 00000000..a17adef1 --- /dev/null +++ b/.github/workflows/nightly-pekko-1.0-tests.yml @@ -0,0 +1,56 @@ +name: Nightly Integration Tests for JDBC (Pekko 1.0.x) + +on: + schedule: + - cron: '0 1 * * *' + workflow_dispatch: + +jobs: + test: + name: Build and Test Integration for JDBC + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + include: + - { java-version: 8, scala-version: 2.12, sbt-opts: '' } + - { java-version: 8, scala-version: 2.13, sbt-opts: '' } + - { java-version: 8, scala-version: 3.3, sbt-opts: '' } + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + + - name: Checkout GitHub merge + if: github.event.pull_request + run: |- + git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch + git checkout scratch + + - name: Copy license acceptance + run: |- + cp container-license-acceptance.txt jdbc/src/it/resources/container-license-acceptance.txt + + - name: Setup JDK ${{ matrix.java-version }} + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java-version }} + distribution: temurin + + - name: Cache Coursier cache + uses: coursier/cache-action@v6 + + - name: Run all integration tests with Scala ${{ matrix.scala-version }} and Java ${{ matrix.java-version }} + run: | + sbt -Dpekko.build.pekko.version=1.0.x \ + -Dpekko.build.pekko.connectors.version=1.0.x \ + ++${{ matrix.scala-version }} \ + jdbc/IntegrationTest/test ${{ matrix.sbt-opts }} + env: # Disable Ryuk resource reaper since we always spin up fresh VMs + TESTCONTAINERS_RYUK_DISABLED: true + + - name: Print logs on failure + if: ${{ failure() }} + run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; diff --git a/build.sbt b/build.sbt index 1353cc24..537cb10c 100644 --- a/build.sbt +++ b/build.sbt @@ -14,6 +14,7 @@ ThisBuild / versionScheme := Some(VersionScheme.SemVerSpec) sourceDistName := "apache-pekko-projection" sourceDistIncubating := false +ThisBuild / resolvers += Resolver.ApacheMavenSnapshotsRepo ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo lazy val core = diff --git a/project/PekkoConnectorsDependency.scala b/project/PekkoConnectorsDependency.scala index d7281d4e..5643f427 100644 --- a/project/PekkoConnectorsDependency.scala +++ b/project/PekkoConnectorsDependency.scala @@ -21,5 +21,5 @@ import com.github.pjfanning.pekkobuild.PekkoDependency object PekkoConnectorsDependency extends PekkoDependency { override val checkProject: String = "pekko-connectors-cassandra" override val module: Option[String] = Some("connectors") - override val currentVersion: String = "1.0.2" + override val currentVersion: String = "1.1.0-M1" }