You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pingme/Makefile

40 lines
1.0 KiB

export GO111MODULE := on
export GOPROXY = https://proxy.golang.org,direct
###############################################################################
# DEPENDENCIES
###############################################################################
# Install all the build and lint dependencies
setup:
go mod download
go generate -v ./...
go mod tidy
.PHONY: setup
###############################################################################
# TESTS
###############################################################################
# Run all the tests
test:
go test -failfast -race -timeout=5m ./...
.PHONY: test
###############################################################################
# CODE HEALTH
###############################################################################
# gofumports and gci all go files
fmt:
find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofumports -w "$$file"; done
.PHONY: fmt
# Run all the linters
lint:
golangci-lint run ./...
.PHONY: lint
ci: test lint
.PHONY: ci