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 11name : 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+
27on :
38 pull_request :
49 paths :
510 - ' **/*'
611 push :
712 branches :
813 - main
14+ workflow_dispatch :
915
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
1027jobs :
1128 test-sdk :
1229 runs-on : ubuntu-latest
1330 steps :
1431 - uses : actions/checkout@v3
32+ with :
33+ repository : Eppo-exp/golang-sdk
34+ ref : ${{ env.SDK_BRANCH_NAME}}
1535 - uses : actions/setup-go@v3
1636 with :
1737 go-version : 1.19
1838 - name : Build
1939 run : go build -v ./...
20- - name : ' Set up GCP SDK for downloading test data'
21- uses : ' google-github-actions/setup-gcloud@v0'
2240 - 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