mirror of https://gitea.com/gitea/act_runner.git
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:
parent
0f7efae806
commit
09c0840ecf
2
Makefile
2
Makefile
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue