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