From 555be1a3330927559752bd84f7db6e1ae99203cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Molinero=20Fern=C3=A1ndez?= Date: Fri, 6 May 2022 17:52:30 +0200 Subject: [PATCH] Test for race conditions --- .github/workflows/main.yml | 2 +- Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c2b9c87..2a423e5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,7 +50,7 @@ jobs: check-latest: true - name: 'Test' run: | - make test + make test test-race test-e2e: name: 'Test e2e' diff --git a/Makefile b/Makefile index e643df1..3acab6c 100644 --- a/Makefile +++ b/Makefile @@ -57,6 +57,10 @@ lint: test: '$(GO)' test -v ./... +.PHONY: test-race +test-race: + CGO_ENABLED=1 '$(GO)' test -v -race ./... + .PHONY: test-e2e test-e2e: ./e2e/run.sh