File tree 5 files changed +14
-0
lines changed
5 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 21
21
uses : actions/setup-go@v5
22
22
with :
23
23
go-version : ${{ matrix.go-version }}
24
+ - name : (Windows) Enable pulling Go modules from private sourcegraph/sourcegraph
25
+ if : runner.os == 'Windows'
26
+ run :
git config --global url."https://$env:[email protected] /sourcegraph/".insteadOf "https://github.com/sourcegraph/"
27
+ - name : (Default) Enable pulling Go modules from private sourcegraph/sourcegraph
28
+ if : runner.os != 'Windows'
29
+ run : git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
24
30
- run : |
25
31
go test -race -v ./...
26
32
go test -v ./...
Original file line number Diff line number Diff line change 17
17
uses : actions/setup-go@v5
18
18
with :
19
19
go-version : 1.22.5
20
+ - name : Enable pulling Go modules from private sourcegraph/sourcegraph
21
+ run : git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
20
22
- run : ./dev/go-lint.sh
Original file line number Diff line number Diff line change 20
20
uses : actions/setup-go@v5
21
21
with :
22
22
go-version : 1.22.5
23
+ - name : Enable pulling Go modules from private sourcegraph/sourcegraph
24
+ run : git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
23
25
- name : Check GoReleaser config
24
26
uses : goreleaser/goreleaser-action@v5
25
27
with :
Original file line number Diff line number Diff line change @@ -182,6 +182,8 @@ jobs:
182
182
uses : actions/setup-go@v5
183
183
with :
184
184
go-version : 1.22.5
185
+ - name : Enable pulling Go modules from private sourcegraph/sourcegraph
186
+ run : git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
185
187
- run : go test ./...
186
188
- run : go test -race -v ./...
187
189
- run : echo "${DOCKER_PASSWORD}" | docker login -u=$DOCKER_USERNAME --password-stdin
Original file line number Diff line number Diff line change 16
16
chmod +x /usr/local/bin/src
17
17
- name : Set directory to safe for git
18
18
run : git config --global --add safe.directory $GITHUB_WORKSPACE
19
+ - name : Enable pulling Go modules from private sourcegraph/sourcegraph
20
+ run : git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
19
21
- name : Generate SCIP data
20
22
run : scip-go
21
23
You can’t perform that action at this time.
0 commit comments