summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml7
-rw-r--r--Makefile3
2 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 25dca9e..c5c5e0b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -37,6 +37,13 @@ unit:
stage: test
script:
- go test ./...
+race:
+ image: golang:alpine
+ stage: test
+ script:
+ - go test -race -shuffle=on ./...
+ variables:
+ CGO_ENABLED: 1
integration:
image: golang:1.24.3
stage: test
diff --git a/Makefile b/Makefile
index 3249a83..07d65fb 100644
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,9 @@ setup:
build: bin/authzd bin/sparkled
test-unit:
+ @go test -shuffle=on ./...
+
+test-race:
@CGO_ENABLED=1 go test -race -shuffle=on ./...
test-integration: build-image