Skip to content

Commit 580dcfc

Browse files
build: add Go verification workflow and refactor design docs
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
1 parent 91e7110 commit 580dcfc

5 files changed

Lines changed: 46 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
verify:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: actions/setup-go@v5
21+
with:
22+
go-version: '1.25'
23+
24+
- name: Run go vet
25+
run: make vet
26+
27+
- name: Capture go build JSON
28+
run: make build-json
29+
30+
- name: Upload go build JSON artifact
31+
if: always()
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: go-build-json
35+
path: build-results.json

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
.omc/
1616

1717
docs/
18-
.ccg
18+
.ccg
19+
.claude/**

.mcp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"mcpServers": {
33
"ccg": {
4-
"command": "ccg",
4+
"command": "./ccg",
55
"args": ["serve", "--db-driver", "sqlite", "--db-dsn", "ccg.db"]
66
}
77
}

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PKG = github.com/tae2089/code-context-graph/cmd/ccg
55
BASE_LDFLAGS = -X main.version=$(VERSION) -X main.commit=$(COMMIT) -X main.date=$(DATE)
66
LDFLAGS = -s -w $(BASE_LDFLAGS)
77

8-
.PHONY: build release build-debug install test test-integration-helpers clean
8+
.PHONY: build release build-debug build-json install vet test test-integration-helpers clean
99

1010
build: release
1111

@@ -15,9 +15,15 @@ release:
1515
build-debug:
1616
CGO_ENABLED=1 go build -tags "fts5" -ldflags '$(BASE_LDFLAGS)' -o ccg ./cmd/ccg/
1717

18+
build-json:
19+
CGO_ENABLED=1 go build -json -tags "fts5" ./... > build-results.json
20+
1821
install:
1922
CGO_ENABLED=1 go install -tags "fts5" -ldflags '$(LDFLAGS)' ./cmd/ccg/
2023

24+
vet:
25+
go vet ./...
26+
2127
test: test-integration-helpers
2228
CGO_ENABLED=1 go test -tags "fts5" ./...
2329
bash ./scripts/integration-test-helpers_test.sh

guide/ko/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ code-context-graph의 문서 인덱스입니다. 한국어 문서는 영어 가
1717
| [사후 처리 실패 정책](postprocess-failure-policy.md) | 상태 규칙, 실패 원인, 빌드 및 사후 처리 도구의 자동 성능 저하(degraded)/폐쇄형 실패(fail_closed) 정책 |
1818
| [아키텍처](architecture.md) | 시스템 아키텍처, 데이터 흐름, DB 스키마 |
1919
| [개발(Development)](development.md) | 빌드, 테스트, 통합 테스트(Gitea + PostgreSQL) |
20+
| [Go 리팩터링 설계](go-refactoring-design.md) | Go 1.21-1.25 기능과 best practice 기반 리팩터링 계획 |
2021
| [네임스페이스 마이그레이션](namespace-migration.md) | 기본 네임스페이스 변경 및 마이그레이션 가이드 |
2122
| [CLAUDE.md 가이드](claude-md-guide.md) | CCG를 사용하는 프로젝트를 위한 CLAUDE.md 템플릿 |

0 commit comments

Comments
 (0)