Files
Agent-System-Dev/.gitea/workflows/ci.yaml
T
weichen 4bd0803c51
ci / test (pull_request) Successful in 1m17s
Use a repo-scoped PAT secret for private submodule clones in CI
Why: the job token only authorizes the event repository; sibling private
submodules (Development-Guidelines et al.) returned 404 on the first run.
Evidence: run 194 log — clone of deps/development-guidelines failed with
repository not found despite the insteadOf rewrite.
Impact: ci.yaml reads secrets.SUBMODULE_TOKEN (stored via API, never in
tree or chat); no other change.
Refs: run 194; PR#11
2026-09-30 04:07:22 +00:00

28 lines
762 B
YAML

name: ci
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
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
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.27"
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Combination test (core + backend + frontend)
run: make test
- name: Build the single binary
run: make build