Skip to content

Commit ddaad36

Browse files
mattsp1290claude
andcommitted
feat: Add Go SDK tests to GitHub Actions workflow
- Add Go test job following Python and TypeScript patterns - Set up Go 1.24.4 environment - Cache Go modules for faster builds - Run all tests in sdks/community/go with verbose output 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent e5b50dd commit ddaad36

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,35 @@ jobs:
8989

9090
- name: Run tests
9191
working-directory: typescript-sdk
92-
run: pnpm run test
92+
run: pnpm run test
93+
94+
go:
95+
name: Go SDK Tests
96+
runs-on: ubuntu-latest
97+
98+
steps:
99+
- name: Checkout code
100+
uses: actions/checkout@v4
101+
102+
- name: Set up Go
103+
uses: actions/setup-go@v5
104+
with:
105+
go-version: '1.24.4'
106+
107+
- name: Setup Go module cache
108+
uses: actions/cache@v4
109+
with:
110+
path: |
111+
~/go/pkg/mod
112+
~/.cache/go-build
113+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
114+
restore-keys: |
115+
${{ runner.os }}-go-
116+
117+
- name: Download dependencies
118+
working-directory: sdks/community/go
119+
run: go mod download
120+
121+
- name: Run tests
122+
working-directory: sdks/community/go
123+
run: go test ./... -v

0 commit comments

Comments
 (0)