This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
.PHONY: format-check module-verify build vet test openspec verify
|
||||
|
||||
GO ?= go
|
||||
OPENSPEC ?= openspec
|
||||
|
||||
format-check:
|
||||
@test -z "$$(gofmt -l $$(find gateway -type f -name '*.go' -print))"
|
||||
|
||||
module-verify:
|
||||
$(GO) mod verify
|
||||
|
||||
build:
|
||||
$(GO) build ./...
|
||||
|
||||
vet:
|
||||
$(GO) vet ./...
|
||||
|
||||
test:
|
||||
$(GO) test ./... -count=1
|
||||
|
||||
openspec:
|
||||
$(OPENSPEC) validate --all --strict --no-interactive
|
||||
|
||||
verify: format-check module-verify build vet test openspec
|
||||
Reference in New Issue
Block a user