Skip to content

Commit

Permalink
chore: add h2 to nightly (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-alfers authored Jan 10, 2024
1 parent d8c6b87 commit 7010a52
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,50 @@ jobs:
body: |
Job ${{ github.job }} in workflow ${{ github.workflow }} of ${{github.repository}} failed!
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
test-h2:
name: Run tests with H2
runs-on: ubuntu-22.04
if: github.repository == 'akka/akka-persistence-r2dbc'
strategy:
fail-fast: false
matrix:
include:
- { scalaVersion: "2.13", jdkVersion: "1.11.0", jvmName: "temurin:1.11.0", extraOpts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler', testCmd: "test"}
- { scalaVersion: "2.13", jdkVersion: "1.17.0", jvmName: "temurin:1.17.0", extraOpts: '', testCmd: "test"}
- { scalaVersion: "3.3", jdkVersion: "1.17.0", jvmName: "temurin:1.17.0", extraOpts: '', testCmd: "core/test"}
- { scalaVersion: "2.13", jdkVersion: "1.21.0", jvmName: "temurin:1.21", extraOpts: '', testCmd: "test"}
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Cache Coursier cache
uses: coursier/[email protected]

- name: Set up JDK ${{ matrix.jdkVersion }}
uses: coursier/[email protected]
with:
jvm: ${{ matrix.jvmName }}

- name: sbt ${{ matrix.testCmd }}
run: |-
cp .jvmopts-ci .jvmopts
sbt ${{ matrix.extraOpts }} -Dconfig.resource=application-h2.conf \
++${{ matrix.scalaVersion }} ${{ matrix.testCmd }}
- name: Email on failure
if: ${{ failure() }}
uses: dawidd6/action-send-mail@6063705cefe50cb915fc53bb06d4049cae2953b2
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: "Failed: ${{ github.workflow }} / ${{ github.job }}"
to: ${{secrets.MAIL_SEND_TO}}
from: AP R2DBC CI
body: |
Job ${{ github.job }} in workflow ${{ github.workflow }} of ${{github.repository}} failed!
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}

0 comments on commit 7010a52

Please sign in to comment.