-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|