Skip to content

Commit

Permalink
race flag requires cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirianni committed Dec 18, 2023
1 parent 8ae5a2d commit 3961819
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,16 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
# Run darwin and linux tests
- name: Run Tests
run: CGO_ENABLED=0 go test -race -coverprofile coverage.txt -coverpkg ./... ./...
if: matrix.os != 'windows-2019'
run: go test -race -coverprofile coverage.txt -coverpkg ./... ./...

# Run windows tests without cgo, race flag (requires cgo), or coverage
- name: Run Windows Tests
if: matrix.os == 'windows-2019'
run: CGO_ENABLED=0 go test ./...

- name: Upload Codecov
# Only submit code coverage if OS is Linux
if: matrix.os == 'ubuntu-20.04'
Expand Down

0 comments on commit 3961819

Please sign in to comment.