From 69181f0b9e5f4bb0aadfa2fa399d5c98fcf86b39 Mon Sep 17 00:00:00 2001 From: parroty Date: Wed, 25 Dec 2024 13:42:06 +0900 Subject: [PATCH 1/4] Update GitHub Actions workflow to use Ubuntu 22.04 and add support for Elixir 1.16 and 1.18.0 --- .github/workflows/tests.yml | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8db6ec1..d90dfde 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,25 +5,36 @@ on: [push, pull_request] jobs: tests: name: Run Tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 + continue-on-error: ${{ matrix.experimental }} strategy: + fail-fast: true matrix: - otp: ['23'] - elixir: ['1.10', '1.11'] - global-mock: [true, false] include: - - otp: '24' - elixir: '1.12' - global-mock: true - - otp: '24' - elixir: '1.12' - global-mock: false - otp: '26' - elixir: '1.14' + elixir: '1.16' global-mock: true + experimental: false - otp: '26' - elixir: '1.14' + elixir: '1.16' + global-mock: false + experimental: false + - otp: "27" + elixir: "1.17" + global-mock: true + experimental: false + - otp: "27" + elixir: "1.17" + global-mock: false + experimental: false + - otp: "27.2" + elixir: "1.18.0" + global-mock: true + experimental: true + - otp: "27.2" + elixir: "1.18.0" global-mock: false + experimental: true env: MIX_ENV: test GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 21ed004acbf6495630479b734448cc6ab658519f Mon Sep 17 00:00:00 2001 From: parroty Date: Wed, 25 Dec 2024 13:44:43 +0900 Subject: [PATCH 2/4] Update GitHub Actions workflow to use Elixir 1.14 and OTP 25 --- .github/workflows/tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d90dfde..d328f92 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,12 +11,12 @@ jobs: fail-fast: true matrix: include: - - otp: '26' - elixir: '1.16' + - otp: '25' + elixir: '1.14' global-mock: true experimental: false - - otp: '26' - elixir: '1.16' + - otp: '25' + elixir: '1.14' global-mock: false experimental: false - otp: "27" From ddbd5ed9096e4fdb36146a013bfe6fae176bd88d Mon Sep 17 00:00:00 2001 From: parroty Date: Wed, 25 Dec 2024 13:47:58 +0900 Subject: [PATCH 3/4] Add :excoveralls to common extra applications and remove unused applications --- mix.exs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mix.exs b/mix.exs index 8e4ef61..2f76848 100644 --- a/mix.exs +++ b/mix.exs @@ -21,7 +21,6 @@ defmodule ExVCR.Mixfile do def application do [ - applications: [:meck, :exactor, :exjsx], extra_applications: extra_applications(Mix.env()), mod: {ExVCR.Application, []} ] @@ -32,7 +31,7 @@ defmodule ExVCR.Mixfile do defp extra_applications(_), do: [] defp common_extra_applications do - [:inets, :ranch, :telemetry, :finch, :ibrowse, :hackney, :http_server, :httpotion, :httpoison] + [:inets, :ranch, :telemetry, :finch, :ibrowse, :hackney, :http_server, :httpotion, :httpoison, :excoveralls] end def deps do From 30841708271233d7ccb9aea47f9ab6b884e2bf27 Mon Sep 17 00:00:00 2001 From: parroty Date: Wed, 25 Dec 2024 14:26:08 +0900 Subject: [PATCH 4/4] Add test step to GitHub Actions workflow and allow coveralls command to continue on error --- .github/workflows/tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d328f92..34f826f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,9 +54,11 @@ jobs: restore-keys: | ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix- - run: mix deps.get + - run: mix test - uses: nick-invision/retry@v3 with: timeout_minutes: 3 max_attempts: 3 shell: bash command: mix coveralls.github + continue-on-error: true \ No newline at end of file