Skip to content

Weekly Integration Tests #21

Weekly Integration Tests

Weekly Integration Tests #21

Workflow file for this run

name: Weekly Integration Tests
on:
schedule:
- cron: "0 0 * * 1"
workflow_dispatch:
permissions:
contents: read
jobs:
compile-and-test:
name: Compile and test
runs-on: Akka-Default
strategy:
fail-fast: false
matrix:
SCALA_VERSION: [2.13, 3.3]
JDK_VERSION: ["1.11", "1.17", "1.21", "1.25"]
include:
- JDK_VERSION: 1.11
JVM_NAME: temurin:1.11
extraOpts: ''
- JDK_VERSION: 1.17
JVM_NAME: temurin:1.17
extraOpts: ''
- JDK_VERSION: 1.21
JVM_NAME: temurin:1.21.0.2
extraOpts: ''
- JDK_VERSION: 1.25
JVM_NAME: temurin:1.25
extraOpts: ''
steps:
- name: Checkout
# https://github.com/actions/checkout/releases
# v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0
- name: Cache Coursier cache
# https://github.com/coursier/cache-action/releases
# v6.4.5
uses: coursier/cache-action@1ff273bff02a8787bc9f1877d347948af647956d
- name: Set up JDK ${{ matrix.JDK_VERSION }}
# https://github.com/coursier/setup-action/releases
# v1.3.5
uses: coursier/setup-action@7bde40eee928896f074dbb76d22dd772eed5c65f
with:
jvm: ${{ matrix.JVM_NAME }}
- name: Cache Build Target
uses: actions/cache@v4.2.0
with:
path: project/**/target
key: build-target-${{ hashFiles('**/*.sbt', 'project/build.properties', 'project/**/*.scala') }}
- name: Start DB
run: |-
docker compose -f docker/docker-compose-with-s3.yml up --wait
- name: Test ${{ matrix.SCALA_VERSION }}, ${{ matrix.JDK_VERSION }}
run: |-
cp .jvmopts-ci .jvmopts
sbt ++${{ matrix.SCALA_VERSION }} test
- name: Email on failure
if: ${{ failure() }}
# https://github.com/dawidd6/action-send-mail/releases/tag/v3.7.1
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: Akka HTTP CI
body: |
Job ${{ github.job }} in workflow ${{ github.workflow }} of ${{github.repository}} failed!
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}