From b2a4fafdb480153fe993e4620d402acc79c5525e Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 17 Jan 2023 12:49:49 -0500 Subject: [PATCH] add race detection for tests --- .goreleaser.debug.yaml | 2 +- .goreleaser.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.debug.yaml b/.goreleaser.debug.yaml index c636553..fb6f160 100644 --- a/.goreleaser.debug.yaml +++ b/.goreleaser.debug.yaml @@ -6,7 +6,7 @@ before: - go generate - go run github.com/google/go-licenses@latest check . --disallowed_types=restricted - go mod tidy - - go test -v ./... + - go test -race -v ./... builds: - id: casaos-amd64 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index c714dda..40cd42c 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -6,7 +6,7 @@ before: - go generate - go run github.com/google/go-licenses@latest check . --disallowed_types=restricted - go mod tidy - - go test -v ./... + - go test -race -v ./... builds: - id: casaos-amd64