forked from kafkaex/kayrock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump deps & add test containers s * Bump required version of elixir - Bump kayrock v0.2 - Bump required version to 1.10 - Add tests for 1.15 * Add first integration test Add integration tests based on tests containers library. This will allow us to test more complex scenarios than a single docker-compose based ones. s * Extend Readme.md
- Loading branch information
Showing
12 changed files
with
337 additions
and
76 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: CI Integration | ||
|
||
on: | ||
pull_request: [] | ||
|
||
jobs: | ||
dependencies: | ||
name: integration | setup dependencies | ||
runs-on: ubuntu-20.04 | ||
env: | ||
MIX_ENV: test | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
strategy: | ||
matrix: | ||
elixir: ['1.15'] | ||
otp: ['26.1'] | ||
|
||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout Github repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup elixir & erlang environment | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
elixir-version: ${{matrix.elixir}} # Define the elixir version [required] | ||
otp-version: ${{matrix.otp}} # Define the OTP version [required] | ||
experimental-otp: true # More info https://github.com/actions/setup-elixir/issues/31 | ||
|
||
- name: Retrieve Cached Dependencies | ||
uses: actions/cache@v2 | ||
id: mix-cache | ||
with: | ||
path: | | ||
deps | ||
_build | ||
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }} | ||
|
||
- name: Install Dependencies | ||
if: steps.mix-cache.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p priv/plts | ||
mix local.rebar --force | ||
mix local.hex --force | ||
mix deps.get | ||
mix deps.compile | ||
integration_test: | ||
name: Integration Test | ||
runs-on: ubuntu-20.04 | ||
needs: [dependencies] | ||
env: | ||
MIX_ENV: test | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
elixir: ['1.15'] | ||
otp: ['26.1'] | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup elixir & erlang environment | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
elixir-version: ${{matrix.elixir}} # Define the elixir version [required] | ||
otp-version: ${{matrix.otp}} # Define the OTP version [required] | ||
experimental-otp: true # More info https://github.com/actions/setup-elixir/issues/31 | ||
|
||
- name: Retrieve Cached Dependencies | ||
uses: actions/cache@v2 | ||
id: mix-cache | ||
with: | ||
path: | | ||
deps | ||
_build | ||
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }} | ||
|
||
- name: Run Test | ||
run: mix test.integration |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
config :testcontainers, enabled: true |
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
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
Oops, something went wrong.