Skip to content

Commit

Permalink
ci(storage): run emulator tests only on lastest go version (#5252)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennaEpp committed Dec 23, 2021
1 parent 4910cd4 commit 60dc590
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions storage/emulator_test.sh
Expand Up @@ -19,6 +19,16 @@ set -eo pipefail
# Display commands being run
set -x

# Only run on the latest
min_ver=1.17

v=`go version | { read _ _ v _; echo ${v#go}; }`
v=${v%.*}

if (( $(echo "$v < $min_ver" |bc -l) )); then
exit 0
fi

export STORAGE_EMULATOR_HOST="http://localhost:9000"

DEFAULT_IMAGE_NAME='gcr.io/cloud-devrel-public-resources/storage-testbench'
Expand Down

0 comments on commit 60dc590

Please sign in to comment.