mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-07-02 20:19:25 +00:00
Add endopoint to check is a given port is open on the client (#22)
This commit is contained in:
9
Makefile
9
Makefile
@ -7,11 +7,11 @@ test: unit-test integration-test
|
||||
|
||||
.PHONY: unit-test
|
||||
unit-test:
|
||||
go test -race -short -cover ./...
|
||||
go test -count=1 -race -short -cover ./...
|
||||
|
||||
.PHONY: integration-test
|
||||
integration-test:
|
||||
go test ./integration-tests -v
|
||||
go test -count=1 -v ./integration-tests
|
||||
|
||||
.PHONY: install-tools
|
||||
install-tools:
|
||||
@ -22,14 +22,9 @@ install-tools:
|
||||
@command $(GOPATH)/shadow > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest; \
|
||||
fi
|
||||
|
||||
@command $(GOPATH)/golines > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
go install github.com/segmentio/golines@latest; \
|
||||
fi
|
||||
.PHONY: lint
|
||||
lint: install-tools
|
||||
gofmt -l . && test -z $$(gofmt -l .)
|
||||
golines -l . && test -z $$(golines -l .)
|
||||
golangci-lint run
|
||||
shadow ./...
|
||||
|
||||
|
Reference in New Issue
Block a user