Makefile: Run fmt before anything else
This commit is contained in:
parent
48593357a5
commit
45c8a2e565
1 changed files with 5 additions and 5 deletions
10
Makefile
10
Makefile
|
|
@ -7,17 +7,17 @@ all: fmt gen lint build test
|
||||||
fmt:
|
fmt:
|
||||||
prefix "$@" ./ci/sub/bin/fmt.sh
|
prefix "$@" ./ci/sub/bin/fmt.sh
|
||||||
.PHONY: gen
|
.PHONY: gen
|
||||||
gen:
|
gen: fmt
|
||||||
prefix "$@" ./ci/gen.sh
|
prefix "$@" ./ci/gen.sh
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint: fmt
|
||||||
prefix "$@" go vet --composites=false ./...
|
prefix "$@" go vet --composites=false ./...
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build: fmt
|
||||||
prefix "$@" go build ./...
|
prefix "$@" go build ./...
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test: fmt
|
||||||
prefix "$@" ./ci/test.sh
|
prefix "$@" ./ci/test.sh
|
||||||
.PHONY: race
|
.PHONY: race
|
||||||
race:
|
race: fmt
|
||||||
prefix "$@" ./ci/test.sh --race ./...
|
prefix "$@" ./ci/test.sh --race ./...
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue