ci: enable Go race detector in tests

Add -race flag to `go test` in the Makefile test target to detect
data races during test execution.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
silverwind 2026-02-19 02:21:52 +01:00
parent 0f7efae806
commit 09c0840ecf
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ security-check: deps-tools
GOEXPERIMENT= $(GO) run $(GOVULNCHECK_PACKAGE) -show color ./...
test: fmt-check security-check
@$(GO) test -v -cover -coverprofile coverage.txt ./... && echo "\n==>\033[32m Ok\033[m\n" || exit 1
@$(GO) test -v -race -cover -coverprofile coverage.txt ./... && echo "\n==>\033[32m Ok\033[m\n" || exit 1
.PHONY: vet
vet: