add dialyzer and credo to tests

This commit is contained in:
shibao 2022-01-22 20:17:05 -05:00
parent 7567281449
commit f5b3eb4a5e

View File

@ -11,7 +11,7 @@ defmodule Cannery.MixProject do
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
dialyzer: [plt_add_deps: :transitive]
dialyzer: [plt_add_apps: [:ex_unit]]
]
end
@ -53,7 +53,7 @@ defmodule Cannery.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
@ -70,6 +70,8 @@ defmodule Cannery.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",