Skip to content

Commit 094b2e1

Browse files
committed
🔧 dialyzer: Use the default dev environment for runnning and checking
1 parent f34ad36 commit 094b2e1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
runs-on: ubuntu-latest
155155
container: hexpm/elixir:1.14.0-erlang-24.3.4.5-alpine-3.16.2
156156
env:
157-
MIX_ENV: dialyzer
157+
MIX_ENV: dev
158158
VERSION_ALPINE: 3.16.2
159159
VERSION_ELIXIR: 1.14.0
160160
VERSION_OTP: 24.3.4.5

mix.exs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ defmodule ExUnion.MixProject do
1313
coveralls: :test,
1414
"coveralls.detail": :test,
1515
"coveralls.post": :test,
16-
"coveralls.html": :test,
17-
dialyzer: :dialyzer
16+
"coveralls.html": :test
1817
],
1918
test_coverage: [tool: ExCoveralls],
2019
start_permanent: Mix.env() == :prod,
@@ -35,7 +34,7 @@ defmodule ExUnion.MixProject do
3534
]
3635
end
3736

38-
defp elixirc_paths(:dialyzer), do: ["examples", "lib"]
37+
defp elixirc_paths(:dev), do: ["examples", "lib"]
3938
defp elixirc_paths(_), do: ["lib"]
4039

4140
# Run "mix help compile.app" to learn about applications.
@@ -49,7 +48,7 @@ defmodule ExUnion.MixProject do
4948
# See the documentation for `Mix` for more info on aliases.
5049
defp aliases do
5150
[
52-
"check.all": ["format --check-formatted", "credo"]
51+
"check.all": ["format --check-formatted", "credo", "dialyzer"]
5352
]
5453
end
5554

@@ -58,7 +57,7 @@ defmodule ExUnion.MixProject do
5857
[
5958
# No Runtime
6059
{:credo, ">= 1.0.0", only: :dev, runtime: false},
61-
{:dialyxir, "~> 1.0", only: :dialyzer, runtime: false},
60+
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
6261
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
6362

6463
# Test

0 commit comments

Comments
 (0)