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