From a889ec1d68eb4af4329890bd0de1d4a5282f3ac3 Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Sat, 17 Feb 2024 22:55:22 -0800 Subject: feat: wee bit o dev tools --- justfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 justfile (limited to 'justfile') diff --git a/justfile b/justfile new file mode 100644 index 0000000..db5bd05 --- /dev/null +++ b/justfile @@ -0,0 +1,12 @@ +TEMPDIR := `mktemp -d` + +build: + CGO=0 go build -o go-git-server cmd/main.go + +test: + golangci-lint run + go test -v -coverprofile={{ TEMPDIR }}/testcover.out ./... + go tool cover -func={{ TEMPDIR }}/testcover.out + +debug-test: + dlv test -- -test.v -- cgit v1.2.3