From 196abe4b3f6cae04864dafa6fb136564e7a0125d Mon Sep 17 00:00:00 2001 From: Laurent Demailly Date: Fri, 22 Mar 2024 17:32:08 -0700 Subject: [PATCH] split race test and coverage generation --- .github/workflows/codecov.yml | 2 +- .github/workflows/gochecks.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index b1f74c8..fafcecd 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -19,7 +19,7 @@ jobs: - name: Optional init run: make dependencies || true # Used in fortio for instance to prep for go tests - name: Run test coverage - run: go test -race -coverprofile=coverage.out -covermode=atomic ./... + run: go test -coverprofile=coverage.out ./... - uses: codecov/codecov-action@v3 with: files: coverage.out diff --git a/.github/workflows/gochecks.yml b/.github/workflows/gochecks.yml index a9542aa..13299fd 100644 --- a/.github/workflows/gochecks.yml +++ b/.github/workflows/gochecks.yml @@ -27,3 +27,7 @@ jobs: run: curl -fsS -o .golangci.yml https://raw.githubusercontent.com/fortio/workflows/main/golangci.yml - name: Run golangci-lint uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # pin@v3 + - name: Optional init + run: make dependencies || true # Used in fortio for instance to prep for go tests + - name: Run tests with race detector + run: go test -race ./...