make race tests not run if it doesn't build (#2068)

This commit is contained in:
reesporte 2022-05-18 16:23:36 -05:00 committed by GitHub
parent 43a61d87b2
commit f4e221e4f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,7 @@ run go tests race:
rules:
- if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"'
retry: 1
needs: [] # don't wait to start running this.
needs: ["smoke build"] # we do block on smoke build though bc it's pretty dumb to test stuff if it doesn't build
script:
- echo "Running featurebase race tests..."
- go test -race -v -timeout=90m ./...
@ -793,4 +793,4 @@ s3 dump tag:
- job: build for darwin amd64
- job: build for darwin arm64
- job: build for linux amd64
- job: build for linux arm64
- job: build for linux arm64