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