commit 134c42fd507a756ab0cb4f273cc9ff630163aebf Author: Urko Date: Mon Mar 6 16:13:25 2023 +0100 feat: add Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..41a4155 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +COVERAGE_DIR=coverage + +lint: + golangci-lint run ./... +goreportcard: + goreportcard-cli -v +test: + go test ./... +test-coverage: + rm -rf ${COVERAGE_DIR} + mkdir ${COVERAGE_DIR} + go test -v -coverprofile ${COVERAGE_DIR}/cover.out ./... + go tool cover -html ${COVERAGE_DIR}/cover.out -o ${COVERAGE_DIR}/cover.html \ No newline at end of file