From 789b58ebe0d23200940a6edab010cd62782e8703 Mon Sep 17 00:00:00 2001 From: workingloong Date: Sun, 12 Jan 2025 22:08:57 +0800 Subject: [PATCH] Fix go CI. --- .github/actions/elasticjob-controller-test/action.yml | 6 +++++- .github/actions/go-master-test/action.yml | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/actions/elasticjob-controller-test/action.yml b/.github/actions/elasticjob-controller-test/action.yml index d7222355d..c3adebe0c 100644 --- a/.github/actions/elasticjob-controller-test/action.yml +++ b/.github/actions/elasticjob-controller-test/action.yml @@ -7,4 +7,8 @@ runs: args: - "/bin/bash" - "-c" - - "cd go/elasticjob && go test ./..." + - "rm -rf /usr/local/go && \ +wget -q https://go.dev/dl/go1.23.4.linux-amd64.tar.gz && \ +tar -C /usr/local -xzf go1.23.4.linux-amd64.tar.gz && \ +go install github.com/onsi/ginkgo/v2/ginkgo@v2.22.2 && \ +cd go/elasticjob && go test ./..." diff --git a/.github/actions/go-master-test/action.yml b/.github/actions/go-master-test/action.yml index da1c4890d..7e41dbe79 100644 --- a/.github/actions/go-master-test/action.yml +++ b/.github/actions/go-master-test/action.yml @@ -7,4 +7,5 @@ runs: args: - "/bin/bash" - "-c" - - "cd go/master && ginkgo -v ./..." + - "go install github.com/onsi/ginkgo/v2/ginkgo@v2.22.2 && \ + cd go/master && ginkgo -v ./..."