summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorMohammed Al Sahaf <[email protected]>2021-01-29 01:40:36 +0300
committerGitHub <[email protected]>2021-01-28 22:40:36 +0000
commite2940c8c03818f1227aa2c103e05fb5664635e11 (patch)
tree6a6f4e92a395543b3eeba4d7531608c5b3b689f6 /.github
parentbef80cd806eadb3555487b624849149b46199c3f (diff)
downloadcaddy-e2940c8c03818f1227aa2c103e05fb5664635e11.tar.gz
caddy-e2940c8c03818f1227aa2c103e05fb5664635e11.zip
ci: update the command to run tests on the s390x machine (#3995)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 476b908f0..9540fddd9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -64,6 +64,7 @@ jobs:
go env
printf "\n\nSystem environment:\n\n"
env
+ printf "Git version: $(git version)\n\n"
# Calculate the short SHA1 hash of the git commit
echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
echo "::set-output name=go_cache::$(go env GOCACHE)"
@@ -137,7 +138,7 @@ jobs:
# The environment is fresh, so there's no point in keeping accepting and adding the key.
rsync -arz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress --delete --exclude '.git' . [email protected]:/var/tmp/"$short_sha"
- ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -t [email protected] "cd /var/tmp/$short_sha; CGO_ENABLED=0 /usr/local/go/bin/go test -v ./..."
+ ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -t [email protected] "cd /var/tmp/$short_sha; go version; go env; printf "\n\n";CGO_ENABLED=0 go test -v ./..."
test_result=$?
# There's no need leaving the files around