Test against RabbitMQ latest alphas #234
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test against RabbitMQ latest alphas | |
on: | |
schedule: | |
- cron: '0 4 * * *' | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
rabbitmq-image: [ 'pivotalrabbitmq/rabbitmq:v3.12.x-otp-max-bazel', 'pivotalrabbitmq/rabbitmq:main-otp-max-bazel' ] | |
name: Test against ${{ matrix.rabbitmq-image }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'maven' | |
- name: Start RabbitMQ | |
run: ci/start-broker.sh | |
env: | |
RABBITMQ_IMAGE: ${{ matrix.rabbitmq-image }} | |
- name: Configure broker | |
run: HOP_RABBITMQCTL=DOCKER:rabbitmq ci/before-build.sh | |
- name: Test | |
run: ./mvnw test --no-transfer-progress | |
- name: Stop broker | |
run: docker stop rabbitmq && docker rm rabbitmq |