From a12594a4d39d80f37aae882a43e6e73a3a7dc94b Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Wed, 6 Nov 2024 15:01:31 -0800 Subject: [PATCH] fix unit tests? --- .github/workflows/unity-test.yml | 4 +++- .github/workflows/unity-testsuite-bindings.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unity-test.yml b/.github/workflows/unity-test.yml index 2f41ac8..0f59654 100644 --- a/.github/workflows/unity-test.yml +++ b/.github/workflows/unity-test.yml @@ -98,7 +98,7 @@ jobs: - name: Install SpacetimeDB CLI from specific branch run: | cd unity-tests~ - git clone --recurse-submodules https://github.com/clockworklabs/SpacetimeDB.git + git clone https://github.com/clockworklabs/SpacetimeDB.git cd SpacetimeDB # Sanitize the branch name by trimming any newlines or spaces branch_name=$(echo "${{ steps.extract-branch.outputs.branch }}" | tr -d '[:space:]') @@ -107,6 +107,8 @@ jobs: branch_name="master" fi git checkout "$branch_name" + git submodule init + git submodule update --recursive echo "Checked out branch: $branch_name" cargo build --release -p spacetimedb-cli sudo mv target/release/spacetime /usr/bin/spacetime diff --git a/.github/workflows/unity-testsuite-bindings.yml b/.github/workflows/unity-testsuite-bindings.yml index fb063fb..08fa5f9 100644 --- a/.github/workflows/unity-testsuite-bindings.yml +++ b/.github/workflows/unity-testsuite-bindings.yml @@ -90,7 +90,7 @@ jobs: - name: Install SpacetimeDB CLI from specific branch run: | cd unity-tests~ - git clone --recurse-submodules https://github.com/clockworklabs/SpacetimeDB.git + git clone https://github.com/clockworklabs/SpacetimeDB.git cd SpacetimeDB # Sanitize the branch name by trimming any newlines or spaces branch_name=$(echo "${{ steps.extract-branch.outputs.branch }}" | tr -d '[:space:]') @@ -99,6 +99,8 @@ jobs: branch_name="master" fi git checkout "$branch_name" + git submodule init + git submodule update --recursive echo "Checked out branch: $branch_name" cargo build --release -p spacetimedb-cli sudo mv target/release/spacetime /usr/bin/spacetime