Try running test suite args with matrix
MODIFY
.github/workflows/test.yml
.github/workflows/test.yml
@@ -49,303 +49,8 @@ jobs:
if: steps.mix-deps-compile-cache.outputs.cache-hit != 'true'
run: mix deps.compile
- test-integration:
- name: runner / Test Integration
- needs: [setup]
-
- runs-on: ubuntu-latest
- env:
- MIX_ENV: test
-
- strategy:
- matrix:
- include:
- - elixir: 1.10.2
- erlang: 22.3
-
- steps:
- - uses: actions/checkout@v2
- - name: Docker-compose up
- run: ./scripts/docker_up.sh
- - name: Setup elixir
- uses: actions/setup-elixir@v1
- with:
- elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
- otp-version: ${{matrix.erlang}} # Define the OTP version [required]
-
- - name: Retrieve Mix Dependencies Cache
- uses: actions/cache@v2
- id: mix-cache # id to use in retrieve action
- with:
- path: deps
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Retrieve Mix Dependencies Compilation Cache
- uses: actions/cache@v2
- id: mix-deps-compile-cache # id to use in retrieve action
- with:
- path: _build
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Docker ps
- run: docker ps
- - name: Run Tests
- run: mix test --include integration
-
- test-consumer_group:
- name: runner / Test consumer_group
-
- runs-on: ubuntu-latest
- env:
- MIX_ENV: test
- needs: [setup]
-
- strategy:
- matrix:
- include:
- - elixir: 1.10.2
- erlang: 22.3
-
- steps:
- - uses: actions/checkout@v2
- - name: Docker-compose up
- run: ./scripts/docker_up.sh
- - name: Setup elixir
- uses: actions/setup-elixir@v1
- with:
- elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
- otp-version: ${{matrix.erlang}} # Define the OTP version [required]
-
- - name: Retrieve Mix Dependencies Cache
- uses: actions/cache@v2
- id: mix-cache # id to use in retrieve action
- with:
- path: deps
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Retrieve Mix Dependencies Compilation Cache
- uses: actions/cache@v2
- id: mix-deps-compile-cache # id to use in retrieve action
- with:
- path: _build
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Docker ps
- run: docker ps
- - name: Run Tests
- run: mix test --include consumer_group
- test-server_0_p_10_and_later:
- name: runner / Test server_0_p_10_and_later
- needs: [setup]
-
- runs-on: ubuntu-latest
- env:
- MIX_ENV: test
-
- strategy:
- matrix:
- include:
- - elixir: 1.10.2
- erlang: 22.3
-
- steps:
- - uses: actions/checkout@v2
- - name: Docker-compose up
- run: ./scripts/docker_up.sh
- - name: Setup elixir
- uses: actions/setup-elixir@v1
- with:
- elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
- otp-version: ${{matrix.erlang}} # Define the OTP version [required]
-
- - name: Retrieve Mix Dependencies Cache
- uses: actions/cache@v2
- id: mix-cache # id to use in retrieve action
- with:
- path: deps
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Retrieve Mix Dependencies Compilation Cache
- uses: actions/cache@v2
- id: mix-deps-compile-cache # id to use in retrieve action
- with:
- path: _build
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Docker ps
- run: docker ps
- - name: Run Tests
- run: mix test --include server_0_p_10_and_later
- test-server_0_p_10_p_1:
- name: runner / Test server_0_p_10_p_1
- needs: [setup]
-
- runs-on: ubuntu-latest
- env:
- MIX_ENV: test
-
- strategy:
- matrix:
- include:
- - elixir: 1.10.2
- erlang: 22.3
-
- steps:
- - uses: actions/checkout@v2
- - name: Docker-compose up
- run: ./scripts/docker_up.sh
- - name: Setup elixir
- uses: actions/setup-elixir@v1
- with:
- elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
- otp-version: ${{matrix.erlang}} # Define the OTP version [required]
-
- - name: Retrieve Mix Dependencies Cache
- uses: actions/cache@v2
- id: mix-cache # id to use in retrieve action
- with:
- path: deps
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Retrieve Mix Dependencies Compilation Cache
- uses: actions/cache@v2
- id: mix-deps-compile-cache # id to use in retrieve action
- with:
- path: _build
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Docker ps
- run: docker ps
- - name: Run Tests
- run: mix test --include server_0_p_10_p_1
- test-server_0_p_9_p_0:
- name: runner / Test server_0_p_9_p_0
- needs: [setup]
-
- runs-on: ubuntu-latest
- env:
- MIX_ENV: test
-
- strategy:
- matrix:
- include:
- - elixir: 1.10.2
- erlang: 22.3
-
- steps:
- - uses: actions/checkout@v2
- - name: Docker-compose up
- run: ./scripts/docker_up.sh
- - name: Setup elixir
- uses: actions/setup-elixir@v1
- with:
- elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
- otp-version: ${{matrix.erlang}} # Define the OTP version [required]
-
- - name: Retrieve Mix Dependencies Cache
- uses: actions/cache@v2
- id: mix-cache # id to use in retrieve action
- with:
- path: deps
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Retrieve Mix Dependencies Compilation Cache
- uses: actions/cache@v2
- id: mix-deps-compile-cache # id to use in retrieve action
- with:
- path: _build
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Docker ps
- run: docker ps
- - name: Run Tests
- run: mix test --include server_0_p_9_p_0
- test-server_0_p_8_p_0:
- name: runner / Test server_0_p_8_p_0
- needs: [setup]
-
- runs-on: ubuntu-latest
- env:
- MIX_ENV: test
-
- strategy:
- matrix:
- include:
- - elixir: 1.10.2
- erlang: 22.3
-
- steps:
- - uses: actions/checkout@v2
- - name: Docker-compose up
- run: ./scripts/docker_up.sh
- - name: Setup elixir
- uses: actions/setup-elixir@v1
- with:
- elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
- otp-version: ${{matrix.erlang}} # Define the OTP version [required]
-
- - name: Retrieve Mix Dependencies Cache
- uses: actions/cache@v2
- id: mix-cache # id to use in retrieve action
- with:
- path: deps
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Retrieve Mix Dependencies Compilation Cache
- uses: actions/cache@v2
- id: mix-deps-compile-cache # id to use in retrieve action
- with:
- path: _build
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Docker ps
- run: docker ps
- - name: Run Tests
- run: mix test --include server_0_p_8_p_0
- test-new_client:
- name: runner / Test new_client
- needs: [setup]
-
- runs-on: ubuntu-latest
- env:
- MIX_ENV: test
-
- strategy:
- matrix:
- include:
- - elixir: 1.10.2
- erlang: 22.3
-
- steps:
- - uses: actions/checkout@v2
- - name: Docker-compose up
- run: ./scripts/docker_up.sh
- - name: Setup elixir
- uses: actions/setup-elixir@v1
- with:
- elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
- otp-version: ${{matrix.erlang}} # Define the OTP version [required]
-
- - name: Retrieve Mix Dependencies Cache
- uses: actions/cache@v2
- id: mix-cache # id to use in retrieve action
- with:
- path: deps
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Retrieve Mix Dependencies Compilation Cache
- uses: actions/cache@v2
- id: mix-deps-compile-cache # id to use in retrieve action
- with:
- path: _build
- key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
-
- - name: Docker ps
- run: docker ps
- - name: Run Tests
- run: mix test --include new_client
test:
- name: runner / Test new_client
+ name: runner / Test Integration
needs: [setup]
runs-on: ubuntu-latest
@@ -354,6 +59,16 @@ jobs:
strategy:
matrix:
+ test_args: [
+ "--include integration",
+ "--include consumer_group",
+ "--include server_0_p_10_and_later",
+ "--include server_0_p_10_p_1",
+ "--include server_0_p_9_p_0",
+ "--include server_0_p_8_p_0",
+ "--include new_client",
+ ""
+ ]
include:
- elixir: 1.10.2
erlang: 22.3
@@ -385,4 +100,299 @@ jobs:
- name: Docker ps
run: docker ps
- name: Run Tests
- run: mix test
+ run: mix test ${{ matrix.test_args }}
+
+ # test-consumer_group:
+ # name: runner / Test consumer_group
+
+ # runs-on: ubuntu-latest
+ # env:
+ # MIX_ENV: test
+ # needs: [setup]
+
+ # strategy:
+ # matrix:
+ # include:
+ # - elixir: 1.10.2
+ # erlang: 22.3
+
+ # steps:
+ # - uses: actions/checkout@v2
+ # - name: Docker-compose up
+ # run: ./scripts/docker_up.sh
+ # - name: Setup elixir
+ # uses: actions/setup-elixir@v1
+ # with:
+ # elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
+ # otp-version: ${{matrix.erlang}} # Define the OTP version [required]
+
+ # - name: Retrieve Mix Dependencies Cache
+ # uses: actions/cache@v2
+ # id: mix-cache # id to use in retrieve action
+ # with:
+ # path: deps
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Retrieve Mix Dependencies Compilation Cache
+ # uses: actions/cache@v2
+ # id: mix-deps-compile-cache # id to use in retrieve action
+ # with:
+ # path: _build
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Docker ps
+ # run: docker ps
+ # - name: Run Tests
+ # run: mix test --include consumer_group
+ # test-server_0_p_10_and_later:
+ # name: runner / Test server_0_p_10_and_later
+ # needs: [setup]
+
+ # runs-on: ubuntu-latest
+ # env:
+ # MIX_ENV: test
+
+ # strategy:
+ # matrix:
+ # include:
+ # - elixir: 1.10.2
+ # erlang: 22.3
+
+ # steps:
+ # - uses: actions/checkout@v2
+ # - name: Docker-compose up
+ # run: ./scripts/docker_up.sh
+ # - name: Setup elixir
+ # uses: actions/setup-elixir@v1
+ # with:
+ # elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
+ # otp-version: ${{matrix.erlang}} # Define the OTP version [required]
+
+ # - name: Retrieve Mix Dependencies Cache
+ # uses: actions/cache@v2
+ # id: mix-cache # id to use in retrieve action
+ # with:
+ # path: deps
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Retrieve Mix Dependencies Compilation Cache
+ # uses: actions/cache@v2
+ # id: mix-deps-compile-cache # id to use in retrieve action
+ # with:
+ # path: _build
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Docker ps
+ # run: docker ps
+ # - name: Run Tests
+ # run: mix test --include server_0_p_10_and_later
+ # test-server_0_p_10_p_1:
+ # name: runner / Test server_0_p_10_p_1
+ # needs: [setup]
+
+ # runs-on: ubuntu-latest
+ # env:
+ # MIX_ENV: test
+
+ # strategy:
+ # matrix:
+ # include:
+ # - elixir: 1.10.2
+ # erlang: 22.3
+
+ # steps:
+ # - uses: actions/checkout@v2
+ # - name: Docker-compose up
+ # run: ./scripts/docker_up.sh
+ # - name: Setup elixir
+ # uses: actions/setup-elixir@v1
+ # with:
+ # elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
+ # otp-version: ${{matrix.erlang}} # Define the OTP version [required]
+
+ # - name: Retrieve Mix Dependencies Cache
+ # uses: actions/cache@v2
+ # id: mix-cache # id to use in retrieve action
+ # with:
+ # path: deps
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Retrieve Mix Dependencies Compilation Cache
+ # uses: actions/cache@v2
+ # id: mix-deps-compile-cache # id to use in retrieve action
+ # with:
+ # path: _build
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Docker ps
+ # run: docker ps
+ # - name: Run Tests
+ # run: mix test --include server_0_p_10_p_1
+ # test-server_0_p_9_p_0:
+ # name: runner / Test server_0_p_9_p_0
+ # needs: [setup]
+
+ # runs-on: ubuntu-latest
+ # env:
+ # MIX_ENV: test
+
+ # strategy:
+ # matrix:
+ # include:
+ # - elixir: 1.10.2
+ # erlang: 22.3
+
+ # steps:
+ # - uses: actions/checkout@v2
+ # - name: Docker-compose up
+ # run: ./scripts/docker_up.sh
+ # - name: Setup elixir
+ # uses: actions/setup-elixir@v1
+ # with:
+ # elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
+ # otp-version: ${{matrix.erlang}} # Define the OTP version [required]
+
+ # - name: Retrieve Mix Dependencies Cache
+ # uses: actions/cache@v2
+ # id: mix-cache # id to use in retrieve action
+ # with:
+ # path: deps
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Retrieve Mix Dependencies Compilation Cache
+ # uses: actions/cache@v2
+ # id: mix-deps-compile-cache # id to use in retrieve action
+ # with:
+ # path: _build
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Docker ps
+ # run: docker ps
+ # - name: Run Tests
+ # run: mix test --include server_0_p_9_p_0
+ # test-server_0_p_8_p_0:
+ # name: runner / Test server_0_p_8_p_0
+ # needs: [setup]
+
+ # runs-on: ubuntu-latest
+ # env:
+ # MIX_ENV: test
+
+ # strategy:
+ # matrix:
+ # include:
+ # - elixir: 1.10.2
+ # erlang: 22.3
+
+ # steps:
+ # - uses: actions/checkout@v2
+ # - name: Docker-compose up
+ # run: ./scripts/docker_up.sh
+ # - name: Setup elixir
+ # uses: actions/setup-elixir@v1
+ # with:
+ # elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
+ # otp-version: ${{matrix.erlang}} # Define the OTP version [required]
+
+ # - name: Retrieve Mix Dependencies Cache
+ # uses: actions/cache@v2
+ # id: mix-cache # id to use in retrieve action
+ # with:
+ # path: deps
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Retrieve Mix Dependencies Compilation Cache
+ # uses: actions/cache@v2
+ # id: mix-deps-compile-cache # id to use in retrieve action
+ # with:
+ # path: _build
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Docker ps
+ # run: docker ps
+ # - name: Run Tests
+ # run: mix test --include server_0_p_8_p_0
+ # test-new_client:
+ # name: runner / Test new_client
+ # needs: [setup]
+
+ # runs-on: ubuntu-latest
+ # env:
+ # MIX_ENV: test
+
+ # strategy:
+ # matrix:
+ # include:
+ # - elixir: 1.10.2
+ # erlang: 22.3
+
+ # steps:
+ # - uses: actions/checkout@v2
+ # - name: Docker-compose up
+ # run: ./scripts/docker_up.sh
+ # - name: Setup elixir
+ # uses: actions/setup-elixir@v1
+ # with:
+ # elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
+ # otp-version: ${{matrix.erlang}} # Define the OTP version [required]
+
+ # - name: Retrieve Mix Dependencies Cache
+ # uses: actions/cache@v2
+ # id: mix-cache # id to use in retrieve action
+ # with:
+ # path: deps
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Retrieve Mix Dependencies Compilation Cache
+ # uses: actions/cache@v2
+ # id: mix-deps-compile-cache # id to use in retrieve action
+ # with:
+ # path: _build
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Docker ps
+ # run: docker ps
+ # - name: Run Tests
+ # run: mix test --include new_client
+ # test:
+ # name: runner / Test new_client
+ # needs: [setup]
+
+ # runs-on: ubuntu-latest
+ # env:
+ # MIX_ENV: test
+
+ # strategy:
+ # matrix:
+ # include:
+ # - elixir: 1.10.2
+ # erlang: 22.3
+
+ # steps:
+ # - uses: actions/checkout@v2
+ # - name: Docker-compose up
+ # run: ./scripts/docker_up.sh
+ # - name: Setup elixir
+ # uses: actions/setup-elixir@v1
+ # with:
+ # elixir-version: ${{matrix.elixir}} # Define the elixir version [required]
+ # otp-version: ${{matrix.erlang}} # Define the OTP version [required]
+
+ # - name: Retrieve Mix Dependencies Cache
+ # uses: actions/cache@v2
+ # id: mix-cache # id to use in retrieve action
+ # with:
+ # path: deps
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Retrieve Mix Dependencies Compilation Cache
+ # uses: actions/cache@v2
+ # id: mix-deps-compile-cache # id to use in retrieve action
+ # with:
+ # path: _build
+ # key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-compile-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
+
+ # - name: Docker ps
+ # run: docker ps
+ # - name: Run Tests
+ # run: mix test

Try running test suite args with matrix