feat: add Make file

This commit is contained in:
Urko 2023-02-26 10:59:41 +01:00
parent 28c7a03d9c
commit 8d533a5ca6
1 changed files with 16 additions and 0 deletions

16
Makefile Normal file
View File

@ -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