Codebase list golang-github-go-playground-validator-v10 / run/ee7e876e-b761-450d-99e4-82f65f3e15fb/main Makefile
run/ee7e876e-b761-450d-99e4-82f65f3e15fb/main

Tree @run/ee7e876e-b761-450d-99e4-82f65f3e15fb/main (Download .tar.gz)

Makefile @run/ee7e876e-b761-450d-99e4-82f65f3e15fb/mainraw · history · blame

GOCMD=GO111MODULE=on go

linters-install:
	@golangci-lint --version >/dev/null 2>&1 || { \
		echo "installing linting tools..."; \
		curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.21.0; \
	}

lint: linters-install
	$(PWD)/bin/golangci-lint run

test:
	$(GOCMD) test -cover -race ./...

bench:
	$(GOCMD) test -bench=. -benchmem ./...

.PHONY: test lint linters-install