Skip to content

Commit

Permalink
chore: update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Jan 19, 2024
1 parent f45622e commit f141e88
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@ generate: mod-tidy

.PHONY: build
build:
GOVERSION=$$(go version) goreleaser build --clean --debug --snapshot
GOVERSION=$$(go version) \
goreleaser build --clean --debug --single-target --snapshot

.PHONY: lint
lint:
golangci-lint run

.PHONY: fuzz
fuzz: mod-tidy generate
go test -fuzz='^Fuzz' -fuzztime=10s -v ./internal/server

.PHONY: cover
cover: mod-tidy generate
go test -v -covermode=atomic -coverprofile=cover.out -coverpkg=./... ./...
go tool cover -html=cover.out

0 comments on commit f141e88

Please sign in to comment.