mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-31 10:08:31 -05:00
Bumps [github.com/gorilla/schema](https://github.com/gorilla/schema) from 1.2.0 to 1.4.1. - [Release notes](https://github.com/gorilla/schema/releases) - [Commits](https://github.com/gorilla/schema/compare/v1.2.0...v1.4.1) --- updated-dependencies: - dependency-name: github.com/gorilla/schema dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
34 lines
950 B
Makefile
34 lines
950 B
Makefile
GO_LINT=$(shell which golangci-lint 2> /dev/null || echo '')
|
|
GO_LINT_URI=github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
|
|
|
GO_SEC=$(shell which gosec 2> /dev/null || echo '')
|
|
GO_SEC_URI=github.com/securego/gosec/v2/cmd/gosec@latest
|
|
|
|
GO_VULNCHECK=$(shell which govulncheck 2> /dev/null || echo '')
|
|
GO_VULNCHECK_URI=golang.org/x/vuln/cmd/govulncheck@latest
|
|
|
|
.PHONY: golangci-lint
|
|
golangci-lint:
|
|
$(if $(GO_LINT), ,go install $(GO_LINT_URI))
|
|
@echo "##### Running golangci-lint"
|
|
golangci-lint run -v
|
|
|
|
.PHONY: gosec
|
|
gosec:
|
|
$(if $(GO_SEC), ,go install $(GO_SEC_URI))
|
|
@echo "##### Running gosec"
|
|
gosec ./...
|
|
|
|
.PHONY: govulncheck
|
|
govulncheck:
|
|
$(if $(GO_VULNCHECK), ,go install $(GO_VULNCHECK_URI))
|
|
@echo "##### Running govulncheck"
|
|
govulncheck ./...
|
|
|
|
.PHONY: verify
|
|
verify: golangci-lint gosec govulncheck
|
|
|
|
.PHONY: test
|
|
test:
|
|
@echo "##### Running tests"
|
|
go test -race -cover -coverprofile=coverage.coverprofile -covermode=atomic -v ./...
|