diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 110586f..c93673c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -31,9 +31,14 @@ jobs: - name: Verify dependencies run: go mod verify - - name: Run tests + - name: Run tests with race detection shell: bash - run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./... + run: go test -v -race ./... + + - name: Run tests with coverage + if: matrix.os == 'ubuntu-latest' + shell: bash + run: go test -coverprofile=coverage.out -covermode=atomic ./... - name: Upload coverage to Codecov if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'