Jelajahi Sumber

github actions smoke-test: run with data race detector (#988)

Run the github actions smoke tests with data race detector enabled, so
we can detect if a PR introduces a simple data race.
Wade Simmons 1 tahun lalu
induk
melakukan
0912ef14f4
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 1
      .github/workflows/smoke.yml
  2. 1 0
      Makefile

+ 1 - 1
.github/workflows/smoke.yml

@@ -26,7 +26,7 @@ jobs:
         check-latest: true
 
     - name: build
-      run: make bin-docker
+      run: make bin-docker CGO_ENABLED=1 BUILD_ARGS=-race
 
     - name: setup docker image
       working-directory: ./.github/workflows/smoke

+ 1 - 0
Makefile

@@ -210,6 +210,7 @@ smoke-relay-docker: bin-docker
 	cd .github/workflows/smoke/ && ./smoke-relay.sh
 
 smoke-docker-race: BUILD_ARGS = -race
+smoke-docker-race: CGO_ENABLED = 1
 smoke-docker-race: smoke-docker
 
 .FORCE: