Files
wehub-resource-sync 36b3af2e3d
PR Check / Tests: Unit (macos-latest) (push) Waiting to run
PR Check / Tests: Unit (ubuntu-24.04) (push) Waiting to run
PR Check / Tests: Unit (ubuntu-24.04-arm) (push) Waiting to run
PR Check / Tests: Unit (windows-latest) (push) Waiting to run
PR Check / Code Quality: Format (push) Failing after 1s
PR Check / Code Quality: Lint (darwin) (push) Failing after 0s
PR Check / Code Quality: Lint (freebsd) (push) Failing after 1s
PR Check / Code Quality: Lint (windows) (push) Failing after 1s
PR Check / Code Quality: Lint (linux) (push) Failing after 1s
PR Check / Security: Vulnerability Scan (push) Failing after 0s
Update Documentation / update-docs (push) Failing after 2s
PR Check / Code Quality: Vendor (push) Failing after 1s
PR Check / Code Quality: Coverage (push) Failing after 0s
chore: import upstream snapshot with attribution
2026-07-13 12:22:06 +08:00

29 lines
586 B
Makefile

.PHONY: build test lint docs man clean
BINARY := witr
CMD := ./cmd/witr
build:
CGO_ENABLED=0 go build -o $(BINARY) $(CMD)
test:
go test ./...
test-race:
go test -race ./...
lint:
@test -z "$$(find . -name '*.go' -not -path './vendor/*' | xargs gofmt -l)" || { echo 'Unformatted Go files (run gofmt -w):'; find . -name '*.go' -not -path './vendor/*' | xargs gofmt -l; exit 1; }
go vet ./...
docs: man markdown
man:
go run ./internal/tools/docgen -format man -out docs/cli
markdown:
go run ./internal/tools/docgen -format markdown -out docs/cli
clean:
rm -f $(BINARY)