Update to amqp 4 #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Elixir ${{ matrix.elixir }} / OTP ${{ matrix.otp }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# rabbit_common currently does not compile against OTP v27. | |
# This needs to be fixed upstream to achieve compatibility. | |
- otp: 27.x | |
elixir: 1.17.x | |
rabbitmq: 4 | |
- otp: 27.x | |
elixir: 1.17.x | |
rabbitmq: 3 | |
- 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 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Start RabbitMQ | |
run: docker compose -f docker-compose.rabbitmq${{matrix.rabbitmq}}.yml up -d | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: ${{ matrix.elixir }} | |
otp-version: ${{ matrix.otp }} | |
- name: Restore deps and _build cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
deps | |
_build | |
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} | |
restore-keys: | | |
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }} | |
- name: Run CI | |
run: mix ci |