mirror of
https://github.com/lukaszraczylo/go-simple-graphql.git
synced 2026-10-13 00:48:37 +00:00
16 lines
313 B
Makefile
16 lines
313 B
Makefile
CI_RUN?=false
|
|
ADDITIONAL_BUILD_FLAGS=""
|
|
|
|
ifeq ($(CI_RUN), true)
|
|
ADDITIONAL_BUILD_FLAGS="-test.short"
|
|
endif
|
|
|
|
prepare:
|
|
go get github.com/go-critic/go-critic/cmd/gocritic
|
|
|
|
test:
|
|
gocritic check -disable=unslice
|
|
go test -race $(ADDITIONAL_BUILD_FLAGS) -v -coverprofile coverage.txt -covermode=atomic
|
|
|
|
lint:
|
|
go fmt
|