adjust makefile and refactor test

This commit is contained in:
Firehose Bot
2026-03-18 20:04:41 +00:00
parent a82dab0350
commit 2a21d75938
3 changed files with 34 additions and 22 deletions
+6 -3
View File
@@ -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