P0 fixes: - ModelError.Is(): use exact matching instead of substring contains() - shouldClearStickySession: add context param for cancellation/tracing P1 fixes: - TODO stubs: return 501 Not Implemented errors - validateInstanceSignature: deduplicate to shared validateCodeSignature() - Error messages: standardize to English only - http.go: remove pseudo if-else with duplicate branches
28 lines
563 B
Makefile
28 lines
563 B
Makefile
.PHONY: build generate test test-unit test-integration test-e2e
|
|
|
|
VERSION ?= $(shell tr -d '\r\n' < ./cmd/server/VERSION)
|
|
LDFLAGS ?= -s -w -X main.Version=$(VERSION)
|
|
|
|
build:
|
|
CGO_ENABLED=0 go build -ldflags="$(LDFLAGS)" -trimpath -o bin/server ./cmd/server
|
|
|
|
generate:
|
|
go generate ./ent
|
|
go generate ./cmd/server
|
|
|
|
test:
|
|
go test ./...
|
|
golangci-lint run ./...
|
|
|
|
test-unit:
|
|
go test -tags=unit ./...
|
|
|
|
test-integration:
|
|
go test -tags=integration ./...
|
|
|
|
test-e2e:
|
|
./scripts/e2e-test.sh
|
|
|
|
test-e2e-local:
|
|
go test -tags=e2e -v -timeout=300s ./internal/integration/...
|