forked from shibao/cannery
add dialyzer and credo to tests
This commit is contained in:
parent
6227d64072
commit
a64d92a6cf
7
mix.exs
7
mix.exs
@ -10,7 +10,8 @@ defmodule Lokal.MixProject do
|
||||
compilers: [:gettext] ++ Mix.compilers(),
|
||||
start_permanent: Mix.env() == :prod,
|
||||
aliases: aliases(),
|
||||
deps: deps()
|
||||
deps: deps(),
|
||||
dialyzer: [plt_add_apps: [:ex_unit]]
|
||||
]
|
||||
end
|
||||
|
||||
@ -52,7 +53,7 @@ defmodule Lokal.MixProject do
|
||||
{:plug_cowboy, "~> 2.5"},
|
||||
{:ecto_psql_extras, "~> 0.6"},
|
||||
{: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"}
|
||||
]
|
||||
end
|
||||
@ -69,6 +70,8 @@ defmodule Lokal.MixProject do
|
||||
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
||||
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
||||
test: [
|
||||
"dialyzer",
|
||||
"credo --strict",
|
||||
"format --check-formatted",
|
||||
"ecto.create --quiet",
|
||||
"ecto.migrate --quiet",
|
||||
|
Loading…
Reference in New Issue
Block a user