diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fcd66ba --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +# Inspired from https://dustinspecker.com/posts/go-combined-unit-integration-code-coverage/ and https://netdevops.me/2023/test-coverage-for-go-integration-tests/ +BIN_DIR = $(CURDIR)/bin +BINARY = $(BIN_DIR)/lyricdownloader + +.PHONY: clean +clean: + go clean + +.PHONY: dep +dep: + go mod tidy + +.PHONY: fmt +fmt: + go fmt ./... + +.PHONY: lint +lint: + golangci-lint run + +.PHONY: build +build: + go build -o $(BINARY) + +.PHONY: lint-all +lint-all: + golangci-lint run --enable-all