Build with Magefile #104341

Merged
Sybren A. Stüvel merged 26 commits from magefile into main 2024-10-04 21:59:46 +02:00
2 changed files with 7 additions and 5 deletions
Showing only changes of commit 72109d503c - Show all commits

View File

@ -147,10 +147,8 @@ swagger-ui:
@echo
@echo 'Now update pkg/api/static/swagger-ui/index.html to have url: "/api/openapi3.json",'
test:
# Ensure the web-static directory exists, so that `web/web_app.go` can embed something.
mkdir -p ${WEB_STATIC}
go test -short -failfast ./...
test: buildtool
"${BUILDTOOL_PATH}" test
clean:
@go clean -i -x

View File

@ -19,7 +19,11 @@ import (
)
func Check(ctx context.Context) {
mg.CtxDeps(ctx, Govulncheck, Staticcheck, Vet)
mg.CtxDeps(ctx, Test, Govulncheck, Staticcheck, Vet)
}
func Test(ctx context.Context) error {
return sh.RunV(mg.GoCmd(), "test", "-short", "-failfast", "./...")
}
// Check for known vulnerabilities.