new_client_snapshot #233
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 alphas | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
repository_dispatch: | |
types: [new_client_snapshot] | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
rabbitmq-image: [ 'pivotalrabbitmq/rabbitmq:v4.0.x', 'pivotalrabbitmq/rabbitmq:main' ] | |
services: | |
rabbitmq: | |
image: ${{ matrix.rabbitmq-image }} | |
ports: | |
- 5672:5672 | |
name: Test against ${{ matrix.rabbitmq-image }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
cache: 'maven' | |
- name: Output broker version | |
run: docker exec ${{job.services.rabbitmq.id}} rabbitmqctl version | |
- name: Enable JMS topic exchange plugin | |
run: docker exec ${{job.services.rabbitmq.id}} rabbitmq-plugins enable rabbitmq_jms_topic_exchange --offline | |
- name: Stop RabbitMQ application | |
run: docker exec ${{job.services.rabbitmq.id}} rabbitmqctl stop_app | |
- name: Start RabbitMQ application | |
run: docker exec ${{job.services.rabbitmq.id}} rabbitmqctl start_app | |
- name: Output dependencies | |
run: ./mvnw dependency:tree --no-transfer-progress | |
- name: Test | |
run: ./mvnw clean verify --no-transfer-progress |