Makefile raw

   1  .PHONY: all
   2  all: build test check
   3  
   4  .PHONY: build
   5  build:
   6  	go build -trimpath
   7  
   8  .PHONY: test
   9  test:
  10  	go test -count=1 -cover -coverprofile=coverage.out ./...
  11  	go tool cover -func=coverage.out
  12  
  13  .PHONY: check
  14  check:
  15  	golangci-lint run
  16