fix: run make test command (#449)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
f1140222a1
commit
d450b3d454
2 changed files with 3 additions and 0 deletions
1
Makefile
1
Makefile
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue