mirror of
https://github.com/lukaszraczylo/go-simple-graphql.git
synced 2026-10-12 00:45:31 +00:00
26 lines
514 B
Makefile
26 lines
514 B
Makefile
CI_RUN?=false
|
|
ADDITIONAL_BUILD_FLAGS=""
|
|
SET_PRIVATE="github.com/telegram-bot-app/*"
|
|
|
|
ifeq ($(CI_RUN), true)
|
|
ADDITIONAL_BUILD_FLAGS="-test.short"
|
|
endif
|
|
|
|
prepare:
|
|
GOPRIVATE=$(SET_PRIVATE) go get github.com/go-critic/go-critic/cmd/gocritic
|
|
gocritic check
|
|
|
|
test: lint tidy
|
|
GOPRIVATE=$(SET_PRIVATE) go test -race $(ADDITIONAL_BUILD_FLAGS) -cover -coverprofile=coverage.out
|
|
|
|
lint:
|
|
go fmt
|
|
|
|
readme:
|
|
godocdown > README.md
|
|
|
|
update:
|
|
GOPRIVATE=$(SET_PRIVATE) go get -u ./...
|
|
|
|
tidy:
|
|
GOPRIVATE=$(SET_PRIVATE) go mod tidy
|