File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
paths :
9
9
- ' **/*'
10
+ workflow_dispatch :
10
11
workflow_call :
12
+ inputs :
13
+ test_data_branch :
14
+ type : string
15
+ description : The branch in sdk-test-data to target for testcase files
16
+ required : false
17
+ default : main
18
+ sdk_branch :
19
+ type : string
20
+ description : The branch of the SDK to test
21
+ required : false
11
22
12
23
env :
24
+ SDK_BRANCH_NAME : ${{ inputs.sdk_branch || github.head_ref || github.ref_name }}
25
+ TEST_DATA_BRANCH_NAME : ${{ inputs.test_data_branch || 'main' }}
26
+
13
27
ORG_GRADLE_PROJECT_ossrhUsername : ${{ secrets.OSSRH_USERNAME }}
14
28
ORG_GRADLE_PROJECT_ossrhPassword : ${{ secrets.OSSRH_PASSWORD }}
15
29
CI : true
18
32
test-android-sdk :
19
33
runs-on : ubuntu-latest
20
34
steps :
35
+ - name : Display Testing Details
36
+ run : |
37
+ echo "Running SDK Test using"
38
+ echo "Test Data: sdk-test-data@${TEST_DATA_BRANCH_NAME}"
39
+ echo "SDK Branch: android-sdk@${SDK_BRANCH_NAME}"
40
+
21
41
- name : Check out Java SDK
22
42
uses : actions/checkout@v4
43
+ with :
44
+ repository : Eppo-exp/android-sdk
45
+ ref : ${{ env.SDK_BRANCH_NAME}}
23
46
24
47
- name : Set up JDK 17
25
48
uses : actions/setup-java@v3
34
57
echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
35
58
36
59
- name : Set up test data
37
- run : make test-data
60
+ run : make test-data branchName=${{env.TEST_DATA_BRANCH_NAME}}
38
61
39
62
- name : Wait for mock UFC DNS to resolve
40
63
run : |
You can’t perform that action at this time.
0 commit comments