Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [main, develop]
pull_request:
branches: [main]
branches: [main, develop]

jobs:
test:
Expand Down Expand Up @@ -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
2 changes: 2 additions & 0 deletions test/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down