1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-22 00:36:41 +02:00
crud_generator/vendor/github.com/bxcodec/faker/v3/Makefile
Nikitin Aleksandr a6ea64ee3e новый
2023-10-24 18:03:04 +03:00

23 lines
531 B
Makefile

BINARY=faker
build: test
@go build ./...
test:
@go test -v ./... -cover -race -coverprofile=coverage.txt -covermode=atomic
unittest:
@go test -v -short ./...
# Linter
lint-prepare:
@echo "Installing golangci-lint"
# @go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s latest
lint:
./bin/golangci-lint run ./...
clean:
if [ -f ${BINARY} ] ; then rm ${BINARY} ; fi
.PHONY: lint lint-prepare clean build unittest