Skip to content

Test against supported Java versions #740

Test against supported Java versions

Test against supported Java versions #740

name: Test against supported Java versions
on:
schedule:
- cron: '0 4 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
distribution: [ 'temurin' ]
version: [ '11', '17', '21', '23' ]
include:
- distribution: 'semeru'
version: '17'
name: Test against Java ${{ matrix.distribution }} ${{ matrix.version }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.version }}
cache: 'maven'
- name: Start RabbitMQ
run: ci/start-broker.sh
- name: Configure broker
run: HOP_RABBITMQCTL=DOCKER:rabbitmq ci/before-build.sh
- name: Show version
run: ./mvnw --version
- name: Test
run: ./mvnw test --no-transfer-progress
- name: Stop broker
run: docker stop rabbitmq && docker rm rabbitmq