File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 5
5
paths :
6
6
- ' **/*'
7
7
8
+ workflow_dispatch :
9
+
10
+ workflow_call :
11
+ inputs :
12
+ test_data_branch :
13
+ type : string
14
+ description : The branch in sdk-test-data to target for testcase files
15
+ required : false
16
+ default : main
17
+ sdk_branch :
18
+ type : string
19
+ description : The branch of the SDK to test
20
+ required : false
8
21
env :
9
22
ORG_GRADLE_PROJECT_ossrhUsername : ${{ secrets.OSSRH_USERNAME }}
10
23
ORG_GRADLE_PROJECT_ossrhPassword : ${{ secrets.OSSRH_PASSWORD }}
11
24
CI : true
25
+ SDK_BRANCH_NAME : ${{ inputs.sdk_branch || github.head_ref || github.ref_name || 'main' }}
26
+ TEST_DATA_BRANCH_NAME : ${{ inputs.test_data_branch || 'main' }}
12
27
13
28
jobs :
14
29
lint-test-sdk :
19
34
steps :
20
35
- uses : actions/checkout@v4
21
36
with :
37
+ repository : Eppo-exp/java-server-sdk
38
+ ref : ${{ env.SDK_BRANCH_NAME }}
22
39
fetch-depth : 0
23
40
24
41
- name : Set up JDK ${{ matrix.java-version }}
28
45
distribution : ' adopt'
29
46
30
47
- name : Run tests
31
- run : make test-data && ./gradlew check --no-daemon --stacktrace
48
+ run : make test-data branchName=${{ env.TEST_DATA_BRANCH_NAME }} && ./gradlew check --no-daemon --stacktrace
You can’t perform that action at this time.
0 commit comments