From 5354bbfc59f37c3d7e8db1c72cfe8985bfc69bb6 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 2 Dec 2024 14:23:51 -0700 Subject: [PATCH 1/3] back to basics --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50233aa5..0009fce9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,10 +4,24 @@ on: push: branches: - main + - tp/** pull_request: + workflow_dispatch: + 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: @@ -20,7 +34,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 From b915c96ba1c324ab3a5678902a20f39dfbc3523c Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 2 Dec 2024 14:38:51 -0700 Subject: [PATCH 2/3] remove temp trigger --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0009fce9..8f28e60e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - tp/** pull_request: workflow_dispatch: workflow_call: From dca962efa092c1efa423b082edcbfb858dd4663b Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 2 Dec 2024 15:05:48 -0700 Subject: [PATCH 3/3] Don't need to remote trigger --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f28e60e..3edb1da5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,6 @@ on: branches: - main pull_request: - workflow_dispatch: workflow_call: inputs: test_data_branch: