-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (54 loc) · 1.79 KB
/
test-rabbitmq-alphas.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Test against RabbitMQ alphas
on:
schedule:
- cron: '0 4 * * *'
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
rabbitmq-image: [ 'pivotalrabbitmq/rabbitmq:v4.0.x', 'pivotalrabbitmq/rabbitmq:main' ]
name: Test against ${{ matrix.rabbitmq-image }}
steps:
- uses: actions/checkout@v4
- name: Checkout tls-gen
uses: actions/checkout@v4
with:
repository: rabbitmq/tls-gen
path: './tls-gen'
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
cache: 'maven'
- name: Start broker
run: ci/start-broker.sh
env:
RABBITMQ_IMAGE: ${{ matrix.rabbitmq-image }}
- name: Start toxiproxy
run: ci/start-toxiproxy.sh
- name: Display Java version
run: ./mvnw --version
- name: Test
run: |
./mvnw verify -Drabbitmqctl.bin=DOCKER:rabbitmq --no-transfer-progress \
-Dca.certificate=./tls-gen/basic/result/ca_certificate.pem \
-Dclient.certificate=./tls-gen/basic/result/client_$(hostname)_certificate.pem \
-Dclient.key=./tls-gen/basic/result/client_$(hostname)_key.pem
- name: Stop toxiproxy
run: docker stop toxiproxy && docker rm toxiproxy
- name: Stop broker
run: docker stop rabbitmq && docker rm rabbitmq
- name: Start cluster
run: ci/start-cluster.sh
env:
RABBITMQ_IMAGE: ${{ matrix.rabbitmq-image }}
- name: Test against cluster
run: ./mvnw test -Dtest="*ClusterTest" -Drabbitmqctl.bin=DOCKER:rabbitmq0
- name: Stop cluster
run: docker compose --file ci/cluster/docker-compose.yml down