diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..85017e3 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +SHELL := /usr/local/bin/oksh +export PATH := $(PATH) + +.PHONY: all fmt lint + +all: fmt lint test + +# Test +test: + go test -v ./... + +# Format code +fmt: + gofumpt -l -w . + gci write . + +# Run linter +lint: fmt + golangci-lint run diff --git a/lint.sh b/lint.sh deleted file mode 100755 index b3f1b7f..0000000 --- a/lint.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -set -eu -golangci-lint run