From 2cd1a0692cb469cef3bf58021d556ef8f7837681 Mon Sep 17 00:00:00 2001 From: Lukasz Samson Date: Thu, 2 Nov 2023 17:01:25 +0100 Subject: [PATCH] don't fail if tests on 1.12 fail --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acb744a1..55a7191a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,32 +16,46 @@ jobs: include: - elixir: 1.12.x otp: 22.x + tests_may_fail: true - elixir: 1.12.x otp: 23.x + tests_may_fail: true - elixir: 1.12.x otp: 24.x + tests_may_fail: true - elixir: 1.13.x otp: 22.x + tests_may_fail: false - elixir: 1.13.x otp: 23.x + tests_may_fail: false - elixir: 1.13.x otp: 24.x + tests_may_fail: false - elixir: 1.13.x otp: 25.x + tests_may_fail: false - elixir: 1.14.x otp: 23.x + tests_may_fail: false - elixir: 1.14.x otp: 24.x + tests_may_fail: false - elixir: 1.14.x otp: 25.x + tests_may_fail: false - elixir: 1.14.x otp: 26.x + tests_may_fail: false - elixir: 1.15.x otp: 24.x + tests_may_fail: false - elixir: 1.15.x otp: 25.x + tests_may_fail: false - elixir: 1.15.x otp: 26.x + tests_may_fail: false env: MIX_ENV: test steps: @@ -55,7 +69,7 @@ jobs: mix local.hex --force mix local.rebar --force mix deps.get --only test - - run: mix test + - run: mix test || ${{ matrix.tests_may_fail }} mix_test_windows: name: mix test windows (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}}) @@ -66,32 +80,46 @@ jobs: include: - elixir: 1.12.x otp: 22.x + tests_may_fail: true - elixir: 1.12.x otp: 23.x + tests_may_fail: true - elixir: 1.12.x otp: 24.x + tests_may_fail: true - elixir: 1.13.x otp: 22.x + tests_may_fail: false - elixir: 1.13.x otp: 23.x + tests_may_fail: false - elixir: 1.13.x otp: 24.x + tests_may_fail: false - elixir: 1.13.x otp: 25.x + tests_may_fail: false - elixir: 1.14.x otp: 23.x + tests_may_fail: false - elixir: 1.14.x otp: 24.x + tests_may_fail: false - elixir: 1.14.x otp: 25.x + tests_may_fail: false - elixir: 1.14.x otp: 26.x + tests_may_fail: false - elixir: 1.15.x otp: 24.x + tests_may_fail: false - elixir: 1.15.x otp: 25.x + tests_may_fail: false - elixir: 1.15.x otp: 26.x + tests_may_fail: false env: MIX_ENV: test steps: @@ -108,7 +136,7 @@ jobs: mix local.hex --force mix local.rebar --force mix deps.get --only test - - run: mix test + - run: mix test || ${{ matrix.tests_may_fail }} static_analysis: name: static analysis (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}})