Merge pull request #503 from kafkaex/KAYROCK-migrate-leave-group #42
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: CI Integration | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| legacy-tests: | |
| name: Legacy Server Tests (0.8, 0.9, 0.10.x) | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 20 | |
| env: | |
| MIX_ENV: test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| pair: | |
| - elixir: 1.18 | |
| otp: 27.2 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Elixir & Erlang | |
| uses: erlef/setup-beam@v1.18 | |
| with: | |
| elixir-version: ${{ matrix.pair.elixir }} | |
| otp-version: ${{ matrix.pair.otp }} | |
| - name: Restore dependencies cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| deps | |
| _build | |
| key: ${{ runner.os }}-mix-${{ matrix.pair.otp }}-${{ matrix.pair.elixir }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mix-${{ matrix.pair.otp }}-${{ matrix.pair.elixir }}- | |
| - name: Install dependencies | |
| run: | | |
| mix local.rebar --force | |
| mix local.hex --force | |
| mix deps.get | |
| mix deps.compile | |
| - name: Docker-compose up | |
| run: ./scripts/docker_up.sh | |
| - name: Run Legacy Server Tests | |
| run: ./scripts/ci_tests_legacy.sh | |
| integration-tests: | |
| name: Integration Tests (New Client, Consumer Groups, Integration) | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 20 | |
| env: | |
| MIX_ENV: test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| pair: | |
| - elixir: 1.18 | |
| otp: 27.2 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Elixir & Erlang | |
| uses: erlef/setup-beam@v1.18 | |
| with: | |
| elixir-version: ${{ matrix.pair.elixir }} | |
| otp-version: ${{ matrix.pair.otp }} | |
| - name: Restore dependencies cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| deps | |
| _build | |
| key: ${{ runner.os }}-mix-${{ matrix.pair.otp }}-${{ matrix.pair.elixir }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mix-${{ matrix.pair.otp }}-${{ matrix.pair.elixir }}- | |
| - name: Install dependencies | |
| run: | | |
| mix local.rebar --force | |
| mix local.hex --force | |
| mix deps.get | |
| mix deps.compile | |
| - name: Docker-compose up | |
| run: ./scripts/docker_up.sh | |
| - name: Run Integration Tests | |
| run: ./scripts/ci_tests_integration.sh | |
| auth-tests: | |
| name: Authentication Tests (SASL) | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 10 | |
| env: | |
| MIX_ENV: test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| pair: | |
| - elixir: 1.18 | |
| otp: 27.2 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Elixir & Erlang | |
| uses: erlef/setup-beam@v1.18 | |
| with: | |
| elixir-version: ${{ matrix.pair.elixir }} | |
| otp-version: ${{ matrix.pair.otp }} | |
| - name: Restore dependencies cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| deps | |
| _build | |
| key: ${{ runner.os }}-mix-${{ matrix.pair.otp }}-${{ matrix.pair.elixir }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mix-${{ matrix.pair.otp }}-${{ matrix.pair.elixir }}- | |
| - name: Install dependencies | |
| run: | | |
| mix local.rebar --force | |
| mix local.hex --force | |
| mix deps.get | |
| mix deps.compile | |
| - name: Docker-compose up | |
| run: ./scripts/docker_up.sh | |
| - name: Run SASL Authentication Tests | |
| run: ./scripts/ci_tests_auth.sh |