Skip to content

Commit

Permalink
extract common tasks aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedsoupe committed Sep 6, 2024
1 parent 22bf94d commit f904c81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 1 addition & 8 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,7 @@ config :git_hooks,
],
hooks: [
pre_push: [
tasks: [
"mix clean",
"mix compile --warning-as-errors",
"mix format --check-formatted",
"mix credo --strict",
"mix test --only unit",
"mix test --only integration"
]
tasks: ["ci.check"]
]
]

Expand Down
4 changes: 3 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ defmodule Pescarte.MixProject do
"ecto.reset": ["ecto.drop", "ecto.setup", "seed"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
"assets.build": ["cmd --cd assets node build.js"],
"assets.deploy": ["cmd --cd assets node build.js --deploy", "phx.digest"]
"assets.deploy": ["cmd --cd assets node build.js --deploy", "phx.digest"],
lint: ["compile --warning-as-errors", "clean", "format --check-formatted", "credo --strict"],
"ci.check": ["lint", "test --only unit", "test --only integration"]
]
end
end

0 comments on commit f904c81

Please sign in to comment.