Skip to content

Commit 348b536

Browse files
committed
golang SDK
1 parent 41db4fd commit 348b536

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

.github/workflows/test-sdks-remote.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,25 @@ jobs:
129129
trigger_workflow: true
130130
wait_workflow: true
131131

132+
test-golang-sdk:
133+
runs-on: ubuntu-latest
134+
steps:
135+
- name: Display workflow details
136+
shell: bash
137+
run: |
138+
echo "Testing eppo-exp/golang-sdk"
139+
- name: Run remote workflow
140+
uses: convictional/[email protected]
141+
with:
142+
owner: Eppo-exp
143+
repo: golang-sdk
144+
workflow_file_name: test.yml
145+
ref: tp/workflows/remote
146+
github_token: ${{ secrets.AUTH_TOKEN }}
147+
wait_interval: 10
148+
propagate_failure: true
149+
trigger_workflow: true
150+
wait_workflow: true
132151
test-dotnet-sdk:
133152
runs-on: ubuntu-latest
134153
steps:

.github/workflows/test-sdks.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -139,21 +139,10 @@ jobs:
139139
run: make test
140140

141141
test-golang-sdk:
142-
runs-on: ubuntu-latest
143-
steps:
144-
- name: Checkout Go SDK
145-
uses: actions/checkout@v3
146-
with:
147-
repository: 'Eppo-exp/golang-sdk'
148-
- uses: actions/setup-go@v3
149-
with:
150-
go-version: 1.19
151-
- name: Build
152-
run: go build -v ./...
153-
- name: 'Set up GCP SDK for downloading test data'
154-
uses: 'google-github-actions/setup-gcloud@v0'
155-
- name: Run tests
156-
run: make test
142+
uses: Eppo-exp/golang-sdk/.github/workflows/test.yml@main
143+
with:
144+
test_data_branch: ${{ github.head_ref || github.ref_name }}
145+
sdk_branch: main
157146

158147
test-dotnet-sdk:
159148
uses: Eppo-exp/dot-net-server-sdk/.github/workflows/run-tests.yml@main

0 commit comments

Comments
 (0)