Skip to content

Commit

Permalink
Test both RabbitMQ 3 and 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ono committed Nov 3, 2024
1 parent d5632a3 commit faf1c44
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: mix compile --warnings-as-errors

test:
name: Test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}})
name: Test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}} | RabbitMQ ${{matrix.rabbitmq}})
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -36,14 +36,19 @@ jobs:
# This needs to be fixed upstream to achieve compatibility.
- otp: 27.x
elixir: 1.17.x
rabbitmq: 4
- otp: 26.x
elixir: 1.17.x
rabbitmq: 3
- otp: 26.x
elixir: 1.16.x
rabbitmq: 3
- otp: 26.x
elixir: 1.15.x
rabbitmq: 3
- otp: 26.x
elixir: 1.14.5
rabbitmq: 3
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
MIX_ENV: test
Expand All @@ -61,7 +66,7 @@ jobs:
run: mix deps.get

- name: Start docker
run: docker compose up --detach
run: docker compose up --detach -f docker-compose.rabbitmq${{matrix.rabbitmq}}.yml

- name: Run tests
run: mix test --trace
7 changes: 7 additions & 0 deletions docker-compose.rabbitmq3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3'

services:
rabbitmq:
image: "rabbitmq:3-alpine"
ports:
- "5672:5672"
7 changes: 7 additions & 0 deletions docker-compose.rabbitmq4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3'

services:
rabbitmq:
image: "rabbitmq:4-alpine"
ports:
- "5672:5672"

0 comments on commit faf1c44

Please sign in to comment.