Skip to content

Commit 2eb5582

Browse files
author
agilira
committed
fix: Enable CGO for race detection tests
1 parent de69b1e commit 2eb5582

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
run: go mod download
5656

5757
- name: Run tests with coverage
58+
env:
59+
CGO_ENABLED: 1
5860
run: |
5961
go test -v -race -coverprofile=coverage.out -covermode=atomic ./...
6062
go tool cover -func=coverage.out
@@ -110,6 +112,8 @@ jobs:
110112
run: gosec ./...
111113

112114
- name: Check for race conditions
115+
env:
116+
CGO_ENABLED: 1
113117
run: go test -race ./...
114118

115119
security:

0 commit comments

Comments
 (0)