diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 00000000..72b54c50 --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,36 @@ +name: Integration Tests + +on: + pull_request: + paths: + - 'internal/cmd/install.go' + - 'internal/cmd/rig.go' + - 'internal/config/**' + - 'internal/routing/**' + - 'internal/cmd/*_integration_test.go' + - '.github/workflows/integration.yml' + +jobs: + integration: + name: Integration Tests + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v6 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.24' + cache: true + + - name: Configure Git + run: | + git config --global user.name "CI Bot" + git config --global user.email "ci@gastown.test" + + - name: Build + run: go build -v ./cmd/gt + + - name: Run integration tests + run: go test -v -tags=integration -timeout=4m ./...