forked from shibao/cannery
add dialyzer and credo to tests
This commit is contained in:
parent
7567281449
commit
f5b3eb4a5e
6
mix.exs
6
mix.exs
@ -11,7 +11,7 @@ defmodule Cannery.MixProject do
|
|||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
aliases: aliases(),
|
aliases: aliases(),
|
||||||
deps: deps(),
|
deps: deps(),
|
||||||
dialyzer: [plt_add_deps: :transitive]
|
dialyzer: [plt_add_apps: [:ex_unit]]
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ defmodule Cannery.MixProject do
|
|||||||
{:plug_cowboy, "~> 2.5"},
|
{:plug_cowboy, "~> 2.5"},
|
||||||
{:ecto_psql_extras, "~> 0.6"},
|
{:ecto_psql_extras, "~> 0.6"},
|
||||||
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
|
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
|
||||||
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
|
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
|
||||||
{:heex_formatter, github: "feliperenan/heex_formatter"}
|
{:heex_formatter, github: "feliperenan/heex_formatter"}
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
@ -70,6 +70,8 @@ defmodule Cannery.MixProject do
|
|||||||
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
||||||
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
||||||
test: [
|
test: [
|
||||||
|
"dialyzer",
|
||||||
|
"credo --strict",
|
||||||
"format --check-formatted",
|
"format --check-formatted",
|
||||||
"ecto.create --quiet",
|
"ecto.create --quiet",
|
||||||
"ecto.migrate --quiet",
|
"ecto.migrate --quiet",
|
||||||
|
Loading…
Reference in New Issue
Block a user