Adding simple Makefile
This commit is contained in:
parent
a4284d56ec
commit
23f3d3b135
|
@ -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
|
Loading…
Reference in New Issue