Makefile: Run fmt before anything else

This commit is contained in:
Anmol Sethi 2023-02-27 17:43:53 -08:00
parent 48593357a5
commit 45c8a2e565
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA

View file

@ -7,17 +7,17 @@ all: fmt gen lint build test
fmt:
prefix "$@" ./ci/sub/bin/fmt.sh
.PHONY: gen
gen:
gen: fmt
prefix "$@" ./ci/gen.sh
.PHONY: lint
lint:
lint: fmt
prefix "$@" go vet --composites=false ./...
.PHONY: build
build:
build: fmt
prefix "$@" go build ./...
.PHONY: test
test:
test: fmt
prefix "$@" ./ci/test.sh
.PHONY: race
race:
race: fmt
prefix "$@" ./ci/test.sh --race ./...