From 528bb594af2dae51946c98a9c78293f58aa356f0 Mon Sep 17 00:00:00 2001 From: Mathieu Fenniak Date: Tue, 12 Aug 2025 10:46:18 -0600 Subject: [PATCH] test: enable data race detector in CI-executed tests --- .forgejo/workflows/test.yml | 4 ++-- Makefile | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 3a1d5abe..0a2e234f 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -146,8 +146,8 @@ jobs: - name: integration test run: | - go test ./act/container - go test -timeout 30m ./act/runner/... + go test -race ./act/container + go test -race -timeout 30m ./act/runner/... runner-integration-tests: name: runner integration tests diff --git a/Makefile b/Makefile index 19e80b70..a16b82ea 100644 --- a/Makefile +++ b/Makefile @@ -106,12 +106,12 @@ fmt-check: fi; test: lint-check fmt-check - $(GO) test -v -short -cover -coverprofile coverage.txt ./internal/... - $(GO) test -short ./act/container - $(GO) test ./act/artifactcache/... ./act/workflowpattern/... ./act/filecollector/... ./act/common/... ./act/jobparser ./act/model ./act/exprparser ./act/schema + $(GO) test -v -race -short -cover -coverprofile coverage.txt ./internal/... + $(GO) test -race -short ./act/container + $(GO) test -race ./act/artifactcache/... ./act/workflowpattern/... ./act/filecollector/... ./act/common/... ./act/jobparser ./act/model ./act/exprparser ./act/schema integration-test: - @$(GO) test -v ./internal/app/run/... + @$(GO) test -race -v ./internal/app/run/... .PHONY: vet vet: