From a403a81cceda596a082a53f023cc3ec7b45f8f7f Mon Sep 17 00:00:00 2001 From: laggu91 Date: Wed, 18 Feb 2026 12:28:40 +0900 Subject: [PATCH 1/2] ci: add integration test job and expand PR trigger (#24) --- .github/workflows/ci.yaml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ff6b070..b83f3c4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,7 +4,7 @@ on: push: branches: [main, develop] pull_request: - branches: [main] + branches: [main, develop] jobs: test: @@ -72,3 +72,24 @@ jobs: distribution: goreleaser version: "~> v2" args: check + + integration: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: "1.23" + + - name: Build binary + run: go build -o git-volume . + + - name: Run integration tests + run: bash test/integration.sh From a4f77f1346c803e539b922708308ebb9451249fa Mon Sep 17 00:00:00 2001 From: laggu91 Date: Wed, 18 Feb 2026 12:33:23 +0900 Subject: [PATCH 2/2] fix(test): add git identity config for CI environments --- test/integration.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration.sh b/test/integration.sh index 52490ed..1d638a8 100755 --- a/test/integration.sh +++ b/test/integration.sh @@ -48,6 +48,8 @@ cd project # Initialize git repository (required for git-volume) git init -q +git config user.name "test" +git config user.email "test@test.com" "$GV_BIN" init -q if [[ -d "$TEST_DIR/.git-volume" && -f "git-volume.yaml" ]]; then