diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd07065a..7f195335 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,19 +16,11 @@ jobs: fail-fast: false matrix: elixir: + - '1.20' - '1.19' - '1.18' - '1.17' - '1.16' - - '1.15' - - '1.14' - - '1.13' - - '1.12' - - '1.11' - - '1.10' - - '1.9' - - '1.8' - - '1.7' steps: - uses: actions/checkout@v4 diff --git a/lib/cachex.ex b/lib/cachex.ex index 60b6e9a9..32e18ef2 100644 --- a/lib/cachex.ex +++ b/lib/cachex.ex @@ -49,7 +49,6 @@ defmodule Cachex do # import util macros require Router - require Overseer # avoid inspect clashes import Kernel, except: [inspect: 2] diff --git a/lib/cachex/spec/validator.ex b/lib/cachex/spec/validator.ex index da76368a..08f82b03 100644 --- a/lib/cachex/spec/validator.ex +++ b/lib/cachex/spec/validator.ex @@ -10,7 +10,7 @@ defmodule Cachex.Spec.Validator do import Cachex.Spec # internal spec to refer to each record type - @type record :: + @type spec_record :: Cachex.Spec.command() | Cachex.Spec.entry() | Cachex.Spec.expiration() @@ -31,7 +31,7 @@ defmodule Cachex.Spec.Validator do This will delegate each record type to a customized validation function. """ - @spec valid?(atom, record) :: boolean + @spec valid?(atom, spec_record) :: boolean # Validates a command specification record. # diff --git a/mix.exs b/mix.exs index 92a128df..0a8a9a70 100644 --- a/mix.exs +++ b/mix.exs @@ -61,7 +61,16 @@ defmodule Cachex.Mixfile do test_coverage: [ tool: ExCoveralls ], - preferred_cli_env: [ + aliases: [ + bench: "run benchmarks/main.exs", + test: [&start_epmd/1, "test"] + ] + ] + end + + def cli do + [ + preferred_envs: [ docs: :docs, bench: :bench, credo: :lint, @@ -69,10 +78,6 @@ defmodule Cachex.Mixfile do coveralls: :cover, "coveralls.html": :cover, "coveralls.travis": :cover - ], - aliases: [ - bench: "run benchmarks/main.exs", - test: [&start_epmd/1, "test"] ] ] end