mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-21 23:43:27 +01:00
build: Prevent Makefile test target from accidentally targeting test folder
This commit is contained in:
parent
27fc784411
commit
ab52676f23
5
Makefile
5
Makefile
@ -1,5 +1,8 @@
|
|||||||
BINARY=gatus
|
BINARY=gatus
|
||||||
|
|
||||||
|
# Because there's a folder called "test", we need to make the target "test" phony
|
||||||
|
.PHONY: test
|
||||||
|
|
||||||
install:
|
install:
|
||||||
go build -mod vendor -o $(BINARY) .
|
go build -mod vendor -o $(BINARY) .
|
||||||
|
|
||||||
@ -10,7 +13,7 @@ clean:
|
|||||||
rm $(BINARY)
|
rm $(BINARY)
|
||||||
|
|
||||||
test:
|
test:
|
||||||
sudo go test ./alerting/... ./client/... ./config/... ./controller/... ./core/... ./jsonpath/... ./pattern/... ./security/... ./storage/... ./util/... ./watchdog/... -cover
|
go test ./... -cover
|
||||||
|
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
Loading…
Reference in New Issue
Block a user