docs: CI workflow 对齐 + ADR-0011/0012 + 部署文档更新 #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| go: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Build | |
| run: go build ./... | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Test | |
| run: go test ./... -count=1 -race | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: latest | |
| args: --timeout 5m | |
| tui: | |
| runs-on: ubuntu-latest | |
| needs: go | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Install dependencies | |
| working-directory: tui | |
| run: npm ci | |
| - name: Build | |
| working-directory: tui | |
| run: npm run build | |
| - name: Lint | |
| working-directory: tui | |
| run: npm run lint | |
| - name: E2E (live server) | |
| working-directory: tui | |
| run: | | |
| cd .. | |
| go build -o aicodingagentteam ./cmd/aicodingagentteam | |
| cd tui | |
| npm test | |
| quality-gate: | |
| runs-on: ubuntu-latest | |
| needs: go | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| - name: Build coordinator | |
| run: go build -o aicodingagentteam ./cmd/aicodingagentteam | |
| - name: Dogfood quality gate | |
| run: ./aicodingagentteam verify |