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.
This commit is contained in:
db123-test
2026-05-04 09:55:52 +03:30
parent 00552b7a04
commit c63db6102c

View File

@@ -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