From 9a1341642fa3e61891f50603af8d3217652059cd Mon Sep 17 00:00:00 2001 From: Liam Bigelow <40188355+bglw@users.noreply.github.com> Date: Sat, 17 Aug 2024 13:26:47 +1200 Subject: [PATCH] Amend CI testing script --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- test_ci.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 43ca9132..4479650f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -475,7 +475,7 @@ jobs: - name: Test CLI if: matrix.run_tests == true - run: ./test_ci.sh + run: ./test_ci.sh "${{ matrix.target }}/release" - name: Move extended binary aside run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 123e5b60..36a80957 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -110,4 +110,4 @@ jobs: run: cargo test --release --lib --features extended - name: Test CLI - run: ./test_ci.sh + run: ./test_ci.sh "release" diff --git a/test_ci.sh b/test_ci.sh index 8d4568bf..9e35da2c 100755 --- a/test_ci.sh +++ b/test_ci.sh @@ -3,7 +3,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd $SCRIPT_DIR -PAGEFIND=$(realpath "$SCRIPT_DIR/target/release/pagefind") +PAGEFIND=$(realpath "$SCRIPT_DIR/target/$1/pagefind") REPO_WD=$(realpath "$SCRIPT_DIR") npx -y toolproof@0.3.0 --placeholders pagefind_exec_path="$PAGEFIND" repo_wd="$REPO_WD" -c 1