@@ -13,6 +13,7 @@ SED ?= sed
|
|||||||
SYFT ?= syft
|
SYFT ?= syft
|
||||||
TAIL ?= tail
|
TAIL ?= tail
|
||||||
ECHO ?= echo
|
ECHO ?= echo
|
||||||
|
GOLINTCMD ?= golangci-lint
|
||||||
|
|
||||||
DOCKER_BUILD_FLAGS?=
|
DOCKER_BUILD_FLAGS?=
|
||||||
DOCKER_BUILD= DOCKER_BUILDKIT=1 $(DOCKER) build $(DOCKER_BUILD_FLAGS)
|
DOCKER_BUILD= DOCKER_BUILDKIT=1 $(DOCKER) build $(DOCKER_BUILD_FLAGS)
|
||||||
@@ -54,7 +55,7 @@ endif
|
|||||||
all: build
|
all: build
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint: vet npm-lint
|
lint: vet go-lint npm-lint
|
||||||
|
|
||||||
.PHONY: vet
|
.PHONY: vet
|
||||||
vet: @probo/emails
|
vet: @probo/emails
|
||||||
@@ -64,6 +65,10 @@ vet: @probo/emails
|
|||||||
npm-lint:
|
npm-lint:
|
||||||
$(NPM) run lint
|
$(NPM) run lint
|
||||||
|
|
||||||
|
.PHONY: go-lint
|
||||||
|
go-lint:
|
||||||
|
$(GOLINTCMD) run ./...
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: CGO_ENABLED=1
|
test: CGO_ENABLED=1
|
||||||
test: ## Run tests with race detection and coverage (usage: make test [MODULE=./pkg/some/module])
|
test: ## Run tests with race detection and coverage (usage: make test [MODULE=./pkg/some/module])
|
||||||
|
|||||||
Reference in New Issue
Block a user