fix: run make test command (#449)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong 2026-04-07 13:52:52 +08:00 committed by GitHub
parent f1140222a1
commit d450b3d454
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -143,6 +143,7 @@ build:
test:
$(REQUIRE_ENV)
@bash scripts/ensure-postgres.sh "$(ENV_FILE)"
cd server && go run ./cmd/migrate up
cd server && go test ./...
# Database

View file

@ -100,6 +100,8 @@ pnpm test || { EXIT_CODE=1; exit 1; }
# --------------------------------------------------------------------------
echo ""
echo "==> [3/5] Go tests..."
echo "==> Running database migrations..."
(cd server && go run ./cmd/migrate up) || { EXIT_CODE=1; exit 1; }
(cd server && go test ./...) || { EXIT_CODE=1; exit 1; }
# --------------------------------------------------------------------------