Skip to content

Commit 5354bbf

Browse files
committed
back to basics
1 parent fe56b44 commit 5354bbf

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,24 @@ on:
44
push:
55
branches:
66
- main
7+
- tp/**
78
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
820

921
env:
1022
CARGO_TERM_COLOR: always
23+
SDK_BRANCH: ${{ inputs.sdk_branch || github.ref || 'main' }}
24+
TEST_DATA_BRANCH: ${{ inputs.test_data_branch || 'main' }}
1125

1226
jobs:
1327
cargo_build_and_test:
@@ -20,7 +34,17 @@ jobs:
2034
steps:
2135
- uses: actions/checkout@v4
2236
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+
2448
- run: npm ci
2549
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
2650
# Add WASM target

0 commit comments

Comments
 (0)