From ad452b146f332ce390c394d76a09803725f99e81 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Mon, 11 May 2020 13:26:31 -0700 Subject: Add race testing as separate CI step This would help catch race conditions such as https://gitlab.com/gitlab-org/gitlab-shell/-/issues/450 before merge. --- .gitlab-ci.yml | 6 ++++++ Makefile | 3 +++ 2 files changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e351fd1..c9c1744 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,6 +55,12 @@ go:1.14: extends: .test image: golang:1.14 +race: + extends: .test + image: golang:1.14 + script: + - make test_golang_race + codequality: extends: .use-docker-in-docker allow_failure: true diff --git a/Makefile b/Makefile index 4b0ca2c..5c2a8f1 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,9 @@ test_ruby: test_golang: go test ./... +test_golang_race: + go test -race ./... + setup: _install bin/gitlab-shell _install: -- cgit v1.2.1