Skip to content

Commit e7a2e0e

Browse files
committed
Add GHA workflow to test against 3.11 stable
1 parent e556f1e commit e7a2e0e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test against 3.11 stable
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-22.04
14+
15+
services:
16+
rabbitmq:
17+
image: rabbitmq:3.11
18+
env:
19+
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: -rabbitmq_stream advertised_host localhost
20+
ports:
21+
- 5552:5552
22+
- 5672:5672
23+
- 1883:1883
24+
- 61613:61613
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- name: Set up JDK
30+
uses: actions/setup-java@v3
31+
with:
32+
distribution: 'temurin'
33+
java-version: '17'
34+
cache: 'maven'
35+
- name: Enable Stream, MQTT and STOMP plugins
36+
run: docker exec ${{job.services.rabbitmq.id}} rabbitmq-plugins enable rabbitmq_stream rabbitmq_mqtt rabbitmq_stomp --offline
37+
- name: Stop RabbitMQ application
38+
run: docker exec ${{job.services.rabbitmq.id}} rabbitmqctl stop_app
39+
- name: Start RabbitMQ application
40+
run: docker exec ${{job.services.rabbitmq.id}} rabbitmqctl start_app
41+
- name: Test
42+
run: ./mvnw test -Drabbitmqctl.bin=DOCKER:${{job.services.rabbitmq.id}}

0 commit comments

Comments
 (0)