Skip to content

Nightly Integration Tests for JDBC (Pekko 1.0.x) #132

Nightly Integration Tests for JDBC (Pekko 1.0.x)

Nightly Integration Tests for JDBC (Pekko 1.0.x) #132

name: Nightly Integration Tests for JDBC (Pekko 1.0.x)
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
jobs:
test:
name: Build and Test Integration for JDBC
runs-on: ubuntu-22.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: Copy license acceptance
run: |-
cp container-license-acceptance.txt jdbc/src/it/resources/container-license-acceptance.txt
- name: Setup JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
- name: Install sbt
uses: sbt/setup-sbt@v1
- name: Cache Coursier cache
uses: coursier/cache-action@v6
- name: Run all integration tests with Scala ${{ matrix.scala-version }} and Java ${{ matrix.java-version }}
run: |
sbt -Dpekko.build.pekko.version=1.0.x \
-Dpekko.build.pekko.connectors.version=1.0.x \
++${{ matrix.scala-version }} \
jdbc/IntegrationTest/test ${{ matrix.sbt-opts }}
env: # Disable Ryuk resource reaper since we always spin up fresh VMs
TESTCONTAINERS_RYUK_DISABLED: true
- name: Print logs on failure
if: ${{ failure() }}
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;