adjust makefile and refactor test
This commit is contained in:
+6
-3
@@ -5,7 +5,7 @@ MISE_EXEC = $(MISE_BIN) exec --
|
||||
|
||||
.PHONY: check precommit deps compile test format credo
|
||||
|
||||
# Run all static analysis checks
|
||||
# Run all static analysis checks (no database required)
|
||||
check: credo format
|
||||
|
||||
# Precommit target for CI/pre-commit hooks
|
||||
@@ -19,8 +19,11 @@ deps:
|
||||
compile:
|
||||
$(MISE_EXEC) mix compile --warnings-as-errors
|
||||
|
||||
# Run tests
|
||||
test: deps
|
||||
# Run tests (requires PostgreSQL running on localhost:5432)
|
||||
# Note: If you don't have PostgreSQL, you can skip tests with `make check`
|
||||
test: deps compile
|
||||
$(MISE_EXEC) mix ecto.create --quiet
|
||||
$(MISE_EXEC) mix ecto.migrate --quiet
|
||||
$(MISE_EXEC) mix test
|
||||
|
||||
# Format code
|
||||
|
||||
Reference in New Issue
Block a user