Skip to content

Commit 00c8d38

Browse files
committed
fix(ci): add 'test --cover' to preferred_envs
mix ci runs 'test --cover' as a space-separated alias, but the preferred_envs config only had the dot-separated 'test.cover'. In Elixir 1.20+, Mix warns (and eventually errors) when a task runs in the wrong env. Adding the space-separated variant silences the warning and ensures tests always run in :test env.
1 parent 75701dd commit 00c8d38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ defmodule AdoCli.MixProject do
172172
end
173173

174174
def cli do
175-
[preferred_envs: [test: :test, "test.cover": :test, "coveralls.json": :test]]
175+
[preferred_envs: [test: :test, "test --cover": :test, "test.cover": :test, "coveralls.json": :test]]
176176
end
177177

178178
defp escript_config do

0 commit comments

Comments
 (0)