mirror of
https://github.com/lukaszraczylo/go-simple-graphql.git
synced 2026-10-12 00:45:31 +00:00
16 lines
295 B
Makefile
16 lines
295 B
Makefile
CI_RUN?=false
|
|
ADDITIONAL_BUILD_FLAGS=""
|
|
|
|
ifeq ($(CI_RUN), true)
|
|
ADDITIONAL_BUILD_FLAGS="-test.short"
|
|
endif
|
|
|
|
prepare:
|
|
go get -u -v github.com/go-critic/go-critic/cmd/gocritic
|
|
|
|
test:
|
|
gocritic check
|
|
go test $(ADDITIONAL_BUILD_FLAGS) -v -coverprofile cover.out -memprofile mem.out
|
|
|
|
lint:
|
|
go fmt
|