From 0773a25ab93b8b2d1c05cb3d400f9b5acc68e20b Mon Sep 17 00:00:00 2001 From: weichen Date: Sat, 3 Oct 2026 10:19:53 +0000 Subject: [PATCH] Fetch CI submodules over HTTPS and run the race detector Why: Checkout did not recurse, so go vet failed without deps/agent-intent, and the runner has no SSH key. Evidence: Workflow uses recursive HTTPS checkout, setup-go 1.27, GOPROXY=https://goproxy.cn,direct, and PROJECT.md vet plus test plus race. 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 --- .gitea/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a084d4c..c4484ca 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,10 +6,20 @@ on: branches: [main] jobs: vet-and-test: - runs-on: nightly + runs-on: ubuntu-latest + env: + GOPROXY: https://goproxy.cn,direct 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 - - run: go vet ./... && go test -count=1 ./... + with: + submodules: recursive + - uses: actions/setup-go@v5 + with: + go-version: "1.27" + - name: Vet, test, and race + run: go vet ./... && go test -count=1 ./... && go test -count=1 -race ./... docker-checkout-hostgateway: runs-on: ubuntu-latest options: --add-host gitea:host-gateway