diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index a6fec59..b236419 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -59,8 +59,8 @@ jobs: strategy: fail-fast: false matrix: - elixir: ['1.12.3'] - otp: ['24.3.4'] + elixir: ['1.15'] + otp: ['26.1'] steps: - name: Cancel Previous Runs diff --git a/mix.exs b/mix.exs index 833e0e1..07d8224 100644 --- a/mix.exs +++ b/mix.exs @@ -45,8 +45,6 @@ defmodule Kayrock.MixProject do {:crc32cer, "~> 0.1"}, {:varint, "~> 1.2"}, {:connection, "~> 1.1"}, - # Integration Tests - {:testcontainers, "~> 1.5", only: [:test]}, # Dev/Test {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, @@ -57,6 +55,15 @@ defmodule Kayrock.MixProject do {:snappy, git: "https://github.com/fdmanana/snappy-erlang-nif", only: [:dev, :test]}, {:snappyer, "~> 1.2", only: [:dev, :test]} ] + |> integration_test_deps() + end + + defp integration_test_deps(deps_list) do + if Version.match?(System.version(), ">= 1.15.0") do + [{:testcontainers, "~> 1.5"} | deps_list] + else + deps_list + end end defp elixirc_paths(:test), do: ["lib", "test/support"]