feat: update makefile
This commit is contained in:
parent
ca4541ca1a
commit
e25b192aff
8
Makefile
8
Makefile
|
@ -1,4 +1,5 @@
|
||||||
|
BINARY_DIR=bin
|
||||||
|
BINARY_NAME=webhook-listener
|
||||||
COVERAGE_DIR=coverage
|
COVERAGE_DIR=coverage
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
@ -13,4 +14,7 @@ test-coverage:
|
||||||
go test -v -coverprofile ${COVERAGE_DIR}/cover.out ./...
|
go test -v -coverprofile ${COVERAGE_DIR}/cover.out ./...
|
||||||
go tool cover -html ${COVERAGE_DIR}/cover.out -o ${COVERAGE_DIR}/cover.html
|
go tool cover -html ${COVERAGE_DIR}/cover.out -o ${COVERAGE_DIR}/cover.html
|
||||||
cd ${COVERAGE_DIR}
|
cd ${COVERAGE_DIR}
|
||||||
open cover.html
|
open cover.html
|
||||||
|
build:
|
||||||
|
mkdir ${BINARY_DIR}
|
||||||
|
go build -o ${BINARY_DIR}/${BINARY_NAME}
|
Loading…
Reference in New Issue