From e14feb03219e3810a7fb919270b6fcc39b61f984 Mon Sep 17 00:00:00 2001 From: weichen Date: Sat, 3 Oct 2026 10:19:56 +0000 Subject: [PATCH] Add a CI workflow that vets and tests the backend module Why: This repo had no workflow, so pull requests could not show a vet or test result. Evidence: The job checks out submodules over HTTPS and runs GOWORK=off go vet ./... && GOWORK=off go test -count=1 ./... on Go 1.27 with GOPROXY=https://goproxy.cn,direct. Impact: 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 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..83aeb86 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,22 @@ +name: ci +on: + push: + branches: [main] + pull_request: + branches: [main] +jobs: + vet-and-test: + 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 + with: + submodules: recursive + - uses: actions/setup-go@v5 + with: + go-version: "1.27" + - name: Vet and test + run: GOWORK=off go vet ./... && GOWORK=off go test -count=1 ./...