chore: LICENSE, CI workflow, gitignore hygiene, makefile targets

This commit is contained in:
2026-05-23 11:47:11 +01:00
parent 8f5200a7f2
commit dd990cf25b
4 changed files with 80 additions and 3 deletions
+14 -2
View File
@@ -1,4 +1,4 @@
.PHONY: build test lint clean install
.PHONY: build test lint test-race cover tidy clean install
BIN := harness-sync
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
@@ -11,7 +11,19 @@ test:
go test ./...
lint:
go vet ./...
golangci-lint run ./...
test-race:
go test -race -count=1 ./...
cover:
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
@echo "open coverage.html"
tidy:
go mod tidy
gofmt -s -w .
install: build
install -m 0755 $(BIN) $$HOME/.local/bin/$(BIN)