diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4cca989..8799e03 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,36 +5,34 @@ on: [push, pull_request] jobs: test: name: Test - runs-on: ubuntu-18.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: include: - - erlang: "24.1.7" - elixir: "1.13.0" + - erlang: "27.3" + elixir: "1.19.5" lint: true big: true - - erlang: "24.1.7" + - erlang: "27.3" + elixir: "1.18.4" + - erlang: "27.3" + elixir: "1.17.3" + - erlang: "26.2" + elixir: "1.16.3" + - erlang: "26.2" + elixir: "1.15.8" + - erlang: "25.3" + elixir: "1.14.5" + - erlang: "25.3" + elixir: "1.13.4" + - erlang: "24.3.4" elixir: "1.12.3" - - erlang: "23.3.4" - elixir: "1.11.4" - - erlang: "23.3.4" - elixir: "1.10.4" - - erlang: "22.3.4" - elixir: "1.9.4" - - erlang: "22.3.4" - elixir: "1.8.2" - - erlang: "21.3.8" - elixir: "1.7.4" - - erlang: "20.3.8" - elixir: "1.6.6" - - erlang: "19.3.6" - elixir: "1.5.3" steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Install OTP and Elixir - uses: erlef/setup-elixir@v1 + uses: erlef/setup-beam@v1 with: otp-version: ${{matrix.erlang}} elixir-version: ${{matrix.elixir}} diff --git a/config/mix_config.exs b/config/mix_config.exs deleted file mode 100644 index 5b9d25e..0000000 --- a/config/mix_config.exs +++ /dev/null @@ -1,14 +0,0 @@ -use Mix.Config - -config :logger, - compile_time_purge_matching: [ - [level_lower_than: :info] - ], - compile_time_purge_level: :info - -config :logger, :console, format: "[$level] $message\n" - -if Mix.env() == :test do - max_runs = String.to_integer(System.get_env("MAX_RUNS") || "1000") - config :stream_data, max_runs: max_runs -end diff --git a/mix.exs b/mix.exs index 95562a9..0ca5201 100644 --- a/mix.exs +++ b/mix.exs @@ -8,10 +8,9 @@ defmodule HexSolver.MixProject do [ app: :hex_solver, version: @version, - elixir: "~> 1.5", + elixir: "~> 1.12", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), - config_path: config_path(), deps: deps(), # Hex @@ -37,14 +36,6 @@ defmodule HexSolver.MixProject do defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] - defp config_path() do - if Version.compare(System.version(), "1.11.0") in [:eq, :gt] do - "config/config.exs" - else - "config/mix_config.exs" - end - end - # Run "mix help deps" to learn about dependencies. defp deps do [