Skip to content

Update sbt-reproducible-builds to 0.35 (#564) #1372

Update sbt-reproducible-builds to 0.35 (#564)

Update sbt-reproducible-builds to 0.35 (#564) #1372

name: Postgres Integration Tests
permissions: {}
on:
pull_request:
push:
branches:
- main
tags-ignore: [ v.* ]
jobs:
integration-test:
name: Integration Tests
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- { name: "Postgres", extraOpts: '' }
- { name: "Postgres (old dao)", extraOpts: ' -Djdbc-journal.dao=org.apache.pekko.persistence.jdbc.journal.dao.legacy.ByteArrayJournalDao -Djdbc-snapshot-store.dao=org.apache.pekko.persistence.jdbc.snapshot.dao.legacy.ByteArraySnapshotDao -Djdbc-read-journal.dao=org.apache.pekko.persistence.jdbc.query.dao.legacy.ByteArrayReadJournalDao' }
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
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 Java 17
uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0
with:
distribution: temurin
java-version: 17
- name: Install sbt
uses: sbt/setup-sbt@66fb4376e81982c7d92a4074170846fff88e2e30 # v1.5.0
- name: Cache Coursier cache
uses: coursier/cache-action@95e5b1029b6b86e7bac033ee44a0697d8a527d2d # v8.1.1
- name: Start docker
run: ./scripts/launch-postgres.sh
- name: Run Integration tests for ${{ matrix.name }}
run: sbt ++2.13 "integration/testOnly org.apache.pekko.persistence.jdbc.integration.Postgres*" ${{ matrix.extraOpts }}
- name: Run Migrator Integration tests for ${{ matrix.name }}
if: matrix.name == 'Postgres'
run: sbt ++2.13 "migratorIntegration/testOnly org.apache.pekko.persistence.jdbc.migrator.integration.Postgres*" ${{ matrix.extraOpts }}
- name: Print logs on failure
if: ${{ failure() }}
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;