Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,21 @@ on:
branches:
- main
pull_request:
workflow_call:
inputs:
test_data_branch:
type: string
description: The branch in sdk-test-data to target for testcase files
required: false
sdk_branch:
type: string
description: The branch of the SDK to test
required: false

env:
CARGO_TERM_COLOR: always
SDK_BRANCH: ${{ inputs.sdk_branch || github.ref || 'main' }}
TEST_DATA_BRANCH: ${{ inputs.test_data_branch || 'main' }}

jobs:
cargo_build_and_test:
Expand All @@ -20,7 +32,17 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
submodules: true
submodules: ${{ !inputs.test_data_branch }}
repository: Eppo-exp/eppo-multiplatform
ref: ${{ env.SDK_BRANCH }}

- uses: actions/checkout@v4
if: ${{ inputs.test_data_branch }}
with:
repository: Eppo-exp/sdk-test-data
ref: ${{ inputs.test_data_branch }}
path: sdk-test-data

- run: npm ci
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
# Add WASM target
Expand Down
Loading