You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
schnutibox/Makefile

53 lines
831 B
Makefile

.PHONY: build
build:
goreleaser build --rm-dist --snapshot
.PHONY: release
release:
goreleaser release --rm-dist --snapshot --skip-publish
.PHONY: generate
generate:
go generate
.PHONY: lint
lint:
golangci-lint run --timeout 10m --enable-all --disable=exhaustivestruct
buf lint -v
.PHONY: test
test:
go test -v -race -cover ./...
.PHONY: test-integration
test-integration: build
go test -v -tags=integration -timeout=240m
.PHONY: test-all
test-all: test test-integration
.PHONY: readme
readme:
goreadme -title revive > README.md
.PHONY: tidy
tidy:
go mod tidy
go mod vendor
.PHONY: build-image
build-image:
./scripts/build.sh
.PHONY: install-tools
install-tools:
@cat tools.go | grep _ | awk -F'"' '{print $$2}' | xargs -tI % go install %
.PHONY: grpc-gen
grpc-gen:
buf generate -v
.PHONY: air
air:
air