mirror of
https://github.com/vale981/agru
synced 2025-03-06 02:01:41 -05:00
30 lines
457 B
Makefile
30 lines
457 B
Makefile
# show help by default
|
|
default:
|
|
@just --list --justfile {{ justfile() }}
|
|
|
|
# update go deps
|
|
update:
|
|
go get .
|
|
go mod tidy
|
|
|
|
# run linter
|
|
lint:
|
|
golangci-lint run ./...
|
|
|
|
# automatically fix liter issues
|
|
lintfix:
|
|
golangci-lint run --fix ./...
|
|
|
|
# run unit tests
|
|
test:
|
|
@go test -coverprofile=cover.out ./...
|
|
@go tool cover -func=cover.out
|
|
-@rm -f cover.out
|
|
|
|
# run app
|
|
run:
|
|
@go run .
|
|
|
|
# build app
|
|
build:
|
|
go build -v -o agru .
|