diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b02a4f17..d4eb0efb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,9 +11,9 @@ jobs: with: go-version: "1.23" - name: build package - env: - CGO_ENABLED: 0 - GOOS: linux + # env: + # CGO_ENABLED: 0 + # GOOS: linux run: | go mod tidy - go build -a -installsuffix cgo -o entrypoint pkg/**/*.go + go build -race -a -installsuffix cgo -o entrypoint pkg/**/*.go diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6c09912c..e62f2222 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,7 +21,7 @@ jobs: - name: install deps run: go mod tidy - name: run test - run: go test -v -coverprofile=profile.cov ./... + run: go test -race -v -coverprofile=profile.cov ./... - name: Send coverage to coverall.io uses: shogo82148/actions-goveralls@v1 diff --git a/pkg/healthcheck/health_checker.go b/pkg/healthcheck/health_checker.go index 9d58a776..7c59061c 100644 --- a/pkg/healthcheck/health_checker.go +++ b/pkg/healthcheck/health_checker.go @@ -50,8 +50,8 @@ func HealthCheckerDetailed(config ApplicationConfig) ApplicationHealthDetailed { go func() { wg.Wait() close(checklist) - result.Duration = time.Since(start).Seconds() }() + result.Duration = time.Since(start).Seconds() for chk := range checklist { result.Integrations = append(result.Integrations, chk) }