10
10
steps :
11
11
- uses : actions/checkout@v5
12
12
13
+ - name : Configure Git for private repos
14
+ env :
15
+ GOPLUS_TOKEN : ${{ secrets.GOPLUS_TOKEN }}
16
+ run : |
17
+ git config --global url."https://${GOPLUS_TOKEN}@github.com/".insteadOf "https://github.com/"
18
+ git config --global url."https://${GOPLUS_TOKEN}@github.com/".insteadOf "[email protected] :"
19
+
13
20
- name : Enable Corepack
14
21
run : corepack enable
15
22
45
52
with :
46
53
go-version : 1.24.x
47
54
55
+ - name : Configure Go private modules
56
+ run : |
57
+ go env -w GOPRIVATE=github.com/goplus/sb2xbp
58
+ go env -w GONOSUMDB=github.com/goplus/sb2xbp
59
+
48
60
- name : Build WASM
49
61
working-directory : spx-gui
50
62
run : ./build-wasm.sh
@@ -62,23 +74,34 @@ jobs:
62
74
steps :
63
75
- uses : actions/checkout@v5
64
76
65
- - name : Set up Go & XGo
66
- uses : goplus/setup-xgo@v1
67
- with :
68
- go-version : 1.24.x
69
- xgo-version : 1.5.x
70
-
71
77
- name : Configure Git for private repos
72
78
env :
73
79
GOPLUS_TOKEN : ${{ secrets.GOPLUS_TOKEN }}
74
80
run : |
75
81
git config --global url."https://${GOPLUS_TOKEN}@github.com/".insteadOf "https://github.com/"
76
82
git config --global url."https://${GOPLUS_TOKEN}@github.com/".insteadOf "[email protected] :"
83
+ echo "Git configuration applied:"
84
+ git config --global --list | grep url
85
+
86
+ - name : Set up Go & XGo
87
+ uses : goplus/setup-xgo@v1
88
+ with :
89
+ go-version : 1.24.x
90
+ xgo-version : 1.5.x
77
91
78
92
- name : Configure Go private modules
79
93
run : |
80
94
go env -w GOPRIVATE=github.com/goplus/sb2xbp
81
95
go env -w GONOSUMDB=github.com/goplus/sb2xbp
96
+ echo "Go environment:"
97
+ go env GOPRIVATE
98
+ go env GONOSUMDB
99
+
100
+ - name : Clear Go module cache and verify access
101
+ run : |
102
+ go clean -modcache
103
+ echo "Testing git access to private repo..."
104
+ git ls-remote https://github.com/goplus/sb2xbp.git || echo "Git access test failed"
82
105
83
106
- name : Run unit test cases
84
107
working-directory : spx-backend
0 commit comments