Skip to content

Commit

Permalink
chore: migrate to justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Aug 22, 2024
1 parent 625216b commit 1dbc66d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 43 deletions.
43 changes: 0 additions & 43 deletions Makefile

This file was deleted.

35 changes: 35 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
all: tidy format test-color lint build clean

tidy:
go mod tidy

test:
go test -race -failfast ./...

test-color:
# go install github.com/haunt98/go-test-color@latest
go-test-color -race -failfast ./...

coverage:
go test -coverprofile=coverage.out ./...

coverage-cli: coverage
go tool cover -func=coverage.out

coverage-html: coverage
go tool cover -html=coverage.out

lint:
golangci-lint run ./...

format:
# go install github.com/haunt98/gofimports/cmd/gofimports@latest
# go install mvdan.cc/gofumpt@latest
gofimports -w --company github.com/make-go-great,github.com/haunt98 .
gofumpt -w -extra .

build:
go build ./cmd/changeloguru

clean:
rm -rf changeloguru

0 comments on commit 1dbc66d

Please sign in to comment.