Files
gemini-grs/Makefile
2024-11-18 16:28:45 +02:00

29 lines
365 B
Makefile

SHELL := /usr/local/bin/oksh
export PATH := $(PATH)
.PHONY: all fmt lint
all: fmt lint test
.PHONY: debug
debug:
@echo "PATH: $(PATH)"
@echo "GOPATH: $(shell go env GOPATH)"
@which go
@which gofumpt
@which gci
@which golangci-lint
# Test
test:
go test -v ./...
# Format code
fmt:
gofumpt -l -w .
gci write .
# Run linter
lint: fmt
golangci-lint run