Skip to content

Run Tests with Pekko 1.0.x builds #74

Run Tests with Pekko 1.0.x builds

Run Tests with Pekko 1.0.x builds #74

name: Run Tests with Pekko 1.0.x builds
on:
schedule:
- cron: '0 2 * * *' # every day 2am
workflow_dispatch:
jobs:
test:
name: Test
if: github.repository == 'apache/pekko-persistence-cassandra'
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- { javaVersion: '8', container: "cassandra-latest", scalaVersion: "2.12", test: "test" }
- { javaVersion: '8', container: "cassandra-latest", scalaVersion: "2.13", test: "test" }
- { javaVersion: '8', container: "cassandra-latest", scalaVersion: "3.3", test: "test" }
env:
JAVA_OPTS: -Xms2G -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
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: Setup Java ${{ matrix.javaVersion }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.javaVersion }}
- name: Cache Coursier cache
uses: coursier/cache-action@v6
- name: Test against ${{ matrix.container }}
run: |-
docker compose up -d ${{ matrix.container }} && sbt -Dpekko.build.pekko.version=1.0.x -Dpekko.build.pekko.connectors.version=1.0.x ++${{ matrix.scalaVersion }} ${{matrix.test}}