File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
pull_request :
8
+ workflow_call :
9
+ inputs :
10
+ test_data_branch :
11
+ type : string
12
+ description : The branch in sdk-test-data to target for testcase files
13
+ required : false
14
+ sdk_branch :
15
+ type : string
16
+ description : The branch of the SDK to test
17
+ required : false
8
18
9
19
env :
10
20
CARGO_TERM_COLOR : always
21
+ SDK_BRANCH : ${{ inputs.sdk_branch || github.ref || 'main' }}
22
+ TEST_DATA_BRANCH : ${{ inputs.test_data_branch || 'main' }}
11
23
12
24
jobs :
13
25
cargo_build_and_test :
20
32
steps :
21
33
- uses : actions/checkout@v4
22
34
with :
23
- submodules : true
35
+ submodules : ${{ !inputs.test_data_branch }}
36
+ repository : Eppo-exp/eppo-multiplatform
37
+ ref : ${{ env.SDK_BRANCH }}
38
+
39
+ - uses : actions/checkout@v4
40
+ if : ${{ inputs.test_data_branch }}
41
+ with :
42
+ repository : Eppo-exp/sdk-test-data
43
+ ref : ${{ inputs.test_data_branch }}
44
+ path : sdk-test-data
45
+
24
46
- run : npm ci
25
47
- run : rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
26
48
# Add WASM target
You can’t perform that action at this time.
0 commit comments