mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 14:24:39 +00:00
5531678e9e
* Mitigate HTTP/RPC Services Allow Unbounded Resource Usage Fixes #7159. Co-authored-by: Matt Keeler <mkeeler@users.noreply.github.com> Co-authored-by: Paul Banks <banks@banksco.de>
33 lines
623 B
YAML
33 lines
623 B
YAML
default:
|
|
deps: [test]
|
|
|
|
dl-deps:
|
|
desc: Downloads cli dependencies
|
|
cmds:
|
|
- go get -u github.com/golang/lint/golint
|
|
- go get -u github.com/golang/dep/cmd/dep
|
|
|
|
update-deps:
|
|
desc: Updates dependencies
|
|
cmds:
|
|
- dep ensure
|
|
- dep ensure -update
|
|
|
|
lint:
|
|
desc: Runs golint
|
|
cmds:
|
|
- go fmt $(go list ./... | grep -v /vendor/)
|
|
- go vet $(go list ./... | grep -v /vendor/)
|
|
- golint $(ls *.go | grep -v "doc.go")
|
|
silent: true
|
|
|
|
test:
|
|
desc: Runs go tests
|
|
cmds:
|
|
- go test -race .
|
|
|
|
test-coverage:
|
|
desc: Runs go tests and calucates test coverage
|
|
cmds:
|
|
- go test -coverprofile=c.out .
|