fix: enable CGO for race detector in tests
- Add CGO_ENABLED=1 to CI test step - Add CGO_ENABLED=1 to Makefile test commands - Fixes: go: -race requires cgo; enable cgo by setting CGO_ENABLED=1
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -34,6 +34,8 @@ jobs:
|
||||
run: go mod verify
|
||||
|
||||
- name: Run tests
|
||||
env:
|
||||
CGO_ENABLED: 1
|
||||
run: go test -v -race -coverprofile=coverage.out ./...
|
||||
|
||||
- name: Upload coverage
|
||||
|
||||
Reference in New Issue
Block a user