From 00a20af051d044b1406e55a8f6fc0e791c8668fa Mon Sep 17 00:00:00 2001 From: Philip Ross Date: Tue, 7 Sep 2021 14:07:55 -0700 Subject: [PATCH] update CI to include new Elixir and OTP versions --- .github/workflows/ci.yaml | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fb4fd10..5c0ee7e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,15 +7,40 @@ jobs: runs-on: ubuntu-latest name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} strategy: + fail-fast: false matrix: - otp: ['23.0'] - elixir: ['1.11.3'] + otp: [20.3, 21.3, 22.3, 23.3, 24.0] + elixir: [1.9.4, 1.10.4, 1.11.4, 1.12.2] + exclude: + - otp: 20.3 + elixir: 1.10.4 + - otp: 20.3 + elixir: 1.11.4 + - otp: 20.3 + elixir: 1.12.2 + - otp: 21.3 + elixir: 1.12.2 + - otp: 23.3 + elixir: 1.9.4 + - otp: 24.0 + elixir: 1.9.4 + - otp: 24.0 + elixir: 1.10.4 + env: + MIX_ENV: test steps: - uses: actions/checkout@v2 - - uses: erlef/setup-elixir@v1 + - uses: erlef/setup-beam@v1 with: otp-version: ${{matrix.otp}} elixir-version: ${{matrix.elixir}} - - run: MIX_ENV=test mix deps.get - - run: MIX_ENV=test mix test - - run: MIX_ENV=test mix credo --strict + - name: Get Dependencies + run: mix deps.get + - name: Compile Dependencies + run: mix deps.compile + - name: Compile Project + run: mix compile + - name: Run Tests + run: mix test + - name: Run Credo + run: mix credo --strict