feat: update makefile

This commit is contained in:
Urko 2023-02-26 11:07:30 +01:00
parent ca4541ca1a
commit e25b192aff
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,5 @@
BINARY_DIR=bin
BINARY_NAME=webhook-listener
COVERAGE_DIR=coverage
lint:
@ -13,4 +14,7 @@ test-coverage:
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
open cover.html
build:
mkdir ${BINARY_DIR}
go build -o ${BINARY_DIR}/${BINARY_NAME}