Skip to content

Commit

Permalink
chore: update Makefile
Browse files Browse the repository at this point in the history
Copy updates from ssh-portal.
  • Loading branch information
smlx committed Mar 19, 2024
1 parent 3e2233b commit 3197a19
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,19 @@ generate: mod-tidy

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

.PHONY: lint
lint:
golangci-lint run --enable gocritic

.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.raw -coverpkg=./... ./...
grep -Ev 'internal/mock|_enumer.go' cover.out.raw > cover.out
go tool cover -html=cover.out

0 comments on commit 3197a19

Please sign in to comment.