From 8d533a5ca61f4b366fc4fbe05c723128fc8efb1f Mon Sep 17 00:00:00 2001 From: Urko Date: Sun, 26 Feb 2023 10:59:41 +0100 Subject: [PATCH] feat: add Make file --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0bc64e6 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ + +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 + cd ${COVERAGE_DIR} + open cover.html \ No newline at end of file