github.com/devster/tarreleaser@v0.0.0-20221207180803-c608f4eb8918/Makefile (about) 1 export GO111MODULE := on 2 3 .DEFAULT_GOAL := build 4 5 # Build a dev version 6 build: 7 go build 8 .PHONY: build 9 10 # Run all the tests 11 test: 12 go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... 13 .PHONY: test 14 15 # Run all the tests and opens the coverage report 16 cover: test 17 go tool cover -html=coverage.txt 18 .PHONY: cover 19 20 fmt: 21 go fmt ./... 22 .PHONY: fmt 23 24 release: 25 curl -sfL https://goreleaser.com/static/run | bash -s -- release