From 015ddd3f236d43ba9128aceb6ecb1d709c3e0064 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 25 Apr 2024 20:40:46 +0200 Subject: [PATCH] Nightly pekko 1.1 tests (#181) * run nightly pekko 1.1 tests * Update nightly-pekko-1.1-tests.yml * -D on wrong yml * run at 4am --- .github/workflows/checks.yml | 1 - .github/workflows/h2-test.yml | 1 - .github/workflows/mysql-tests.yml | 1 - .github/workflows/nightly-pekko-1.1-tests.yml | 48 +++++++++++++++++++ .github/workflows/oracle-tests.yml | 1 - .github/workflows/postgres-tests.yml | 1 - .github/workflows/sqlserver-tests.yml | 1 - build.sbt | 1 + 8 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/nightly-pekko-1.1-tests.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 3edacb4d..ee9f135b 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -7,7 +7,6 @@ on: push: branches: - main - - migration-tool # remove before merging to main tags-ignore: [ v.* ] jobs: diff --git a/.github/workflows/h2-test.yml b/.github/workflows/h2-test.yml index 1b059774..ccfc45a1 100644 --- a/.github/workflows/h2-test.yml +++ b/.github/workflows/h2-test.yml @@ -7,7 +7,6 @@ on: push: branches: - main - - migration-tool # remove before merging to main tags-ignore: [ v.* ] jobs: diff --git a/.github/workflows/mysql-tests.yml b/.github/workflows/mysql-tests.yml index d6c40f55..c5c8c704 100644 --- a/.github/workflows/mysql-tests.yml +++ b/.github/workflows/mysql-tests.yml @@ -7,7 +7,6 @@ on: push: branches: - main - - migration-tool # remove before merging to main tags-ignore: [ v.* ] jobs: diff --git a/.github/workflows/nightly-pekko-1.1-tests.yml b/.github/workflows/nightly-pekko-1.1-tests.yml new file mode 100644 index 00000000..4e31f3dd --- /dev/null +++ b/.github/workflows/nightly-pekko-1.1-tests.yml @@ -0,0 +1,48 @@ +name: Nightly Testing with Pekko 1.1 + +permissions: {} + +on: + schedule: + - cron: "0 4 * * *" + workflow_dispatch: + +jobs: + test: + name: Build and Test + 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: Setup JDK ${{ matrix.java-version }} + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: ${{ matrix.java-version }} + + - name: Cache Coursier cache + uses: coursier/cache-action@v6 + + - name: Run tests with Scala ${{ matrix.scala-version }} and Java ${{ matrix.java-version }} + run: sbt -Dpekko.build.pekko.version=main "++${{ matrix.scala-version }} test" ${{ matrix.sbt-opts }} + + - name: Print logs on failure + if: ${{ failure() }} + run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; diff --git a/.github/workflows/oracle-tests.yml b/.github/workflows/oracle-tests.yml index f6a33d7a..1c6e62d0 100644 --- a/.github/workflows/oracle-tests.yml +++ b/.github/workflows/oracle-tests.yml @@ -7,7 +7,6 @@ on: push: branches: - main - - migration-tool # remove before merging to main tags-ignore: [ v.* ] jobs: diff --git a/.github/workflows/postgres-tests.yml b/.github/workflows/postgres-tests.yml index 05950a92..5568e9ba 100644 --- a/.github/workflows/postgres-tests.yml +++ b/.github/workflows/postgres-tests.yml @@ -7,7 +7,6 @@ on: push: branches: - main - - migration-tool # remove before merging to main tags-ignore: [ v.* ] jobs: diff --git a/.github/workflows/sqlserver-tests.yml b/.github/workflows/sqlserver-tests.yml index a8e6911c..c7dfa0ed 100644 --- a/.github/workflows/sqlserver-tests.yml +++ b/.github/workflows/sqlserver-tests.yml @@ -7,7 +7,6 @@ on: push: branches: - main - - migration-tool # remove before merging to main tags-ignore: [ v.* ] jobs: diff --git a/build.sbt b/build.sbt index e46f85e0..cadbfa2f 100644 --- a/build.sbt +++ b/build.sbt @@ -18,6 +18,7 @@ sourceDistIncubating := false val mimaCompareVersion = "1.0.0" +ThisBuild / resolvers += Resolver.ApacheMavenSnapshotsRepo ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo lazy val `pekko-persistence-jdbc` = project