Skip to content

Commit ad35609

Browse files
committed
disable -race tests flag at windows.
1 parent 2d1312d commit ad35609

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/run_tests_and_coverage.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ jobs:
1919
run: go mod download
2020

2121
- name: Run coverage
22-
run: go test -v -cover -race -coverprofile=coverage.txt -covermode=atomic ./...
22+
run: |
23+
if [ "${{ runner.os }}" == "Windows" ]; then
24+
go test -v -cover -coverprofile=coverage.txt -covermode=atomic ./...
25+
else
26+
go test -v -cover -race -coverprofile=coverage.txt -covermode=atomic ./...
27+
fi
2328
2429
- name: Upload coverage to Codecov
2530
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)