update setup go task to use releases

This commit is contained in:
Dmitry Shibanov 2020-06-23 19:04:25 +03:00
parent 0f551ac199
commit ddc76880cc
10 changed files with 4041 additions and 9876 deletions

14
__tests__/verify-go.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
if [ -z "$1" ]; then
echo "Must supply go version argument"
exit 1
fi
go_version="$(go version)"
echo "Found go version '$go_version'"
if [ -z "$(echo $go_version | grep $1)" ]; then
echo "Unexpected version"
exit 1
fi