Skip to content

Test against supported Java versions (main) #191

Test against supported Java versions (main)

Test against supported Java versions (main) #191

name: Test against supported Java versions (main)
on:
schedule:
- cron: '0 4 ? * SUN,THU'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
distribution: [ 'temurin' ]
version: [ '8', '11', '17', '21', '22', '23-ea' ]
include:
- distribution: 'semeru'
version: '17'
name: Test against Java ${{ matrix.distribution }} ${{ matrix.version }}
steps:
- uses: actions/checkout@v4
- name: Checkout tls-gen
uses: actions/checkout@v4
with:
repository: rabbitmq/tls-gen
path: './tls-gen'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.version }}
cache: 'maven'
- name: Start broker
run: ci/start-broker.sh
- name: Get dependencies
run: make deps
- name: Show version
run: ./mvnw --version
- name: Test with NIO
run: |
./mvnw verify -P '!setup-test-cluster,use-nio' -Drabbitmqctl.bin=DOCKER:rabbitmq \
-Dtest-broker.A.nodename=rabbit@$(hostname) -Dmaven.javadoc.skip=true \
-Dtest-client-cert.password= -Dtest-tls-certs.dir=rabbitmq-configuration/tls \
-Dit.test=ClientTestSuite,FunctionalTestSuite,ServerTestSuite,SslTestSuite \
--no-transfer-progress \
-Dnet.bytebuddy.experimental=true
- name: Test with blocking IO
run: |
./mvnw verify -P '!setup-test-cluster' -Drabbitmqctl.bin=DOCKER:rabbitmq \
-Dtest-broker.A.nodename=rabbit@$(hostname) -Dmaven.javadoc.skip=true \
-Dtest-client-cert.password= -Dtest-tls-certs.dir=rabbitmq-configuration/tls \
-Dit.test=ClientTestSuite,FunctionalTestSuite,ServerTestSuite,SslTestSuite \
--no-transfer-progress \
-Dnet.bytebuddy.experimental=true
- name: Stop broker
run: docker stop rabbitmq && docker rm rabbitmq