From c63db6102cf735b0b446c46ffb5510fa6438fb8a Mon Sep 17 00:00:00 2001 From: db123-test Date: Mon, 4 May 2026 09:55:52 +0330 Subject: [PATCH] chore(ci-cd): setup go environment in CI workflow Add a setup step to export Go binary path to bashrc before configuring the proxy mirror, ensuring Go commands are available in the build environment. --- .github/workflows/ci-cd.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 99ee388..208d2ff 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -14,6 +14,9 @@ jobs: - name: Checkout repo run: git clone "${{ secrets.G_CLONE_URL }}" . + - name: Setup go + run : echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && source ~/.bashrc + - name: Set go proxy mirror run: go env -w GOPROXY=https://go.iranserver.com/repository/go/ && go env -w GOSUMDB=off