Skip to content

Commit

Permalink
ci job with 4 data partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw committed Jan 30, 2024
1 parent aee3108 commit 5043093
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]

- name: Set up JDK 11
uses: coursier/[email protected]
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
Expand Down

0 comments on commit 5043093

Please sign in to comment.