Fetch CI submodules over HTTPS and run the race detector
Why: The runner has no SSH key, so recursive checkout failed, and tests had no module proxy or race detector. Evidence: Workflow matches PROJECT.md vet, test, and race commands, with setup-go 1.27 and GOPROXY=https://goproxy.cn,direct. Impact: vet-and-test runs on ubuntu-latest. SUBMODULE_TOKEN must be set by the owner before checkout can succeed. Refs: feature/agent-stack-r0-r1 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+10
-2
@@ -6,12 +6,20 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
vet-and-test:
|
vet-and-test:
|
||||||
runs-on: nightly
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
GOPROXY: https://goproxy.cn,direct
|
||||||
steps:
|
steps:
|
||||||
|
- name: Configure submodule auth over HTTPS
|
||||||
|
run: git config --global url."https://weichen:${{ secrets.SUBMODULE_TOKEN }}@git-home.u1680832.nyat.app:30319/".insteadOf "ssh://git@git-ssh.u1680832.nyat.app:31411/"
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- run: go vet ./... && go test -count=1 ./...
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: "1.27"
|
||||||
|
- name: Vet, test, and race
|
||||||
|
run: GOWORK=off go vet ./... && GOWORK=off go test -count=1 ./... && GOWORK=off go test -count=1 -race ./...
|
||||||
docker-checkout-hostgateway:
|
docker-checkout-hostgateway:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
options: --add-host gitea:host-gateway
|
options: --add-host gitea:host-gateway
|
||||||
|
|||||||
Reference in New Issue
Block a user