-
Notifications
You must be signed in to change notification settings - Fork 56
49 lines (47 loc) · 1.38 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
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 for compilation
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
cache: 'maven'
- name: Show version
run: ./mvnw --version
- name: Compile
run: ./mvnw clean test-compile --no-transfer-progress
- name: Show version
run: ./mvnw --version
- 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: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '21'
cache: 'maven'
- name: Show version
run: ./mvnw --version
- name: Test
run: ./mvnw -DskipBytecodeCheck test --no-transfer-progress
- name: Stop broker
run: docker stop rabbitmq && docker rm rabbitmq