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 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