File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Test SDK
2
+
3
+ env :
4
+ SDK_BRANCH_NAME : ${{ inputs.sdk_branch || github.head_ref || github.ref_name || 'main' }}
5
+ TEST_DATA_BRANCH_NAME : ${{ inputs.test_data_branch || 'main' }}
6
+
2
7
on :
3
8
pull_request :
4
9
paths :
5
10
- ' **/*'
6
11
push :
7
12
branches :
8
13
- main
14
+ workflow_dispatch :
9
15
16
+ workflow_call :
17
+ inputs :
18
+ test_data_branch :
19
+ type : string
20
+ description : The branch in sdk-test-data to target for testcase files
21
+ required : false
22
+ default : main
23
+ sdk_branch :
24
+ type : string
25
+ description : The branch of the SDK to test
26
+ required : false
10
27
jobs :
11
28
test-sdk :
12
29
runs-on : ubuntu-latest
13
30
steps :
14
31
- uses : actions/checkout@v3
32
+ with :
33
+ repository : Eppo-exp/golang-sdk
34
+ ref : ${{ env.SDK_BRANCH_NAME}}
15
35
- uses : actions/setup-go@v3
16
36
with :
17
37
go-version : 1.19
18
38
- name : Build
19
39
run : go build -v ./...
20
- - name : ' Set up GCP SDK for downloading test data'
21
- uses : ' google-github-actions/setup-gcloud@v0'
22
40
- name : Test
23
- run : make test
41
+ run : make test branchName=${{env.TEST_DATA_BRANCH_NAME}}
You can’t perform that action at this time.
0 commit comments