From 8da2bdab1293f376035837ebc400a4bcf0b8e7fa Mon Sep 17 00:00:00 2001 From: tolelom <98kimsungmin@naver.com> Date: Wed, 18 Mar 2026 10:56:21 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20GitHub=20Actions=20=EC=9B=8C=ED=81=AC?= =?UTF-8?q?=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Go 빌드 + 테스트 자동화 (push/PR on main) Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..35bc167 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + # a301_server depends on tolchain via go.mod replace directive. + # Clone tolchain into ../tolchain so the replace path resolves. + - name: Checkout tolchain dependency + uses: actions/checkout@v4 + with: + repository: ${{ github.repository_owner }}/tolchain + path: ../tolchain + + - uses: actions/setup-go@v5 + with: + go-version: '1.25' + + - name: Build + run: go build ./... + + - name: Test + run: go test ./... -v