Build with Magefile #104341
6
Makefile
6
Makefile
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user