From 504309345bd40f3741e0f7b4d654d14a4507da1b Mon Sep 17 00:00:00 2001 From: Patrik Nordwall Date: Tue, 30 Jan 2024 14:35:29 +0100 Subject: [PATCH] ci job with 4 data partitions --- .github/workflows/build-test.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index ce4f705e..22dc1d57 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -112,6 +112,40 @@ jobs: -Dakka.persistence.r2dbc.state.payload-column-type=JSONB \ "core/testOnly akka.persistence.r2dbc.PayloadSpec" + test-postgres-data-partitions: + name: Run test with Postgres and several data partitions + runs-on: ubuntu-22.04 + if: github.repository == 'akka/akka-persistence-r2dbc' + steps: + - name: Checkout + uses: actions/checkout@v3.1.0 + with: + fetch-depth: 0 + + - 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: Cache Coursier cache + uses: coursier/cache-action@v6.4.0 + + - name: Set up JDK 11 + uses: coursier/setup-action@v1.3.0 + with: + jvm: temurin:1.11.0 + + - name: Start DB + run: |- + docker compose -f docker/docker-compose-postgres.yml up --wait + docker exec -i postgres-db psql -U postgres -t < ddl-scripts/create_tables_postgres_4.sql + + - name: sbt test + run: |- + cp .jvmopts-ci .jvmopts + sbt -Dakka.persistence.r2dbc.journal.table-data-partitions=4 test + test-yugabyte: name: Run tests with Yugabyte runs-on: ubuntu-22.04