From 6ea0e5d4e918c7572910d43e18413e188e618903 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Thu, 3 Feb 2022 18:24:20 -0500 Subject: [PATCH] ci: skip building the binary The tests that require a Consul binary should be skipped by -short, so skip building the binary in go-test-arm64 to save after 3 minutes. --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index aa5eb95ca0..c2d09266a4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -266,8 +266,11 @@ jobs: sudo rm -rf /usr/local/go wget https://golang.org/dl/go1.17.5.linux-arm64.tar.gz sudo tar -C /usr/local -xzvf go1.17.5.linux-arm64.tar.gz - - run: make dev - run: *install-gotestsum + - run: go mod download + - run: + name: make dev + command: if [[ "$CIRCLE_BRANCH" =~ ^main$|^release/ ]]; then make dev; fi - run-go-test-full: go_test_flags: 'if ! [[ "$CIRCLE_BRANCH" =~ ^main$|^release/ ]]; then export GO_TEST_FLAGS="-short"; fi'