version 4.2.0 #181
This file contains hidden or 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: Elixir CI | |
| on: | |
| push: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| branches: | |
| - '**' # all branches, including forks | |
| jobs: | |
| format: | |
| name: Format and compile with warnings as errors | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install OTP and Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: 26.x | |
| elixir-version: 1.17.x | |
| experimental-otp: true | |
| - name: Install dependencies | |
| run: mix deps.get | |
| - name: Run "mix format" | |
| run: mix format --check-formatted | |
| - name: Compile with --warnings-as-errors | |
| run: mix compile --warnings-as-errors | |
| test: | |
| name: Test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}} | RabbitMQ ${{matrix.rabbitmq}}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - otp: 29.x | |
| elixir: 1.20.x | |
| rabbitmq: 4 | |
| - otp: 29.x | |
| elixir: 1.20.x | |
| rabbitmq: 3 | |
| - otp: 28.x | |
| elixir: 1.20.x | |
| rabbitmq: 3 | |
| - otp: 28.x | |
| elixir: 1.19.x | |
| rabbitmq: 3 | |
| - otp: 27.x | |
| elixir: 1.18.x | |
| rabbitmq: 3 | |
| - otp: 26.x | |
| elixir: 1.17.x | |
| rabbitmq: 3 | |
| - otp: 26.x | |
| elixir: 1.16.x | |
| rabbitmq: 3 | |
| env: | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| MIX_ENV: test | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install OTP and Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: ${{matrix.otp}} | |
| elixir-version: ${{matrix.elixir}} | |
| experimental-otp: true | |
| - name: Install dependencies | |
| run: mix deps.get | |
| - name: Start docker | |
| run: docker compose -f docker-compose.rabbitmq${{matrix.rabbitmq}}.yml up --detach | |
| - name: Run tests | |
| run: mix test --trace |