ci(storage): run emulator tests only on lastest go version
@@ -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'
