diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9148fa98..7701fb74 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,12 +39,12 @@ jobs: - name: Run tests run: cargo test --verbose - - name: Run `ark-cli watch` test - run: ./integration/ark-cli-watch.sh - - name: Build Release run: cargo build --verbose --release + - name: Run `ark-cli watch` test + run: ./integration/ark-cli-watch.sh + - name: Install JDK uses: actions/setup-java@v4.2.1 with: diff --git a/integration/ark-cli-watch.sh b/integration/ark-cli-watch.sh index b5a172f2..58d935f8 100755 --- a/integration/ark-cli-watch.sh +++ b/integration/ark-cli-watch.sh @@ -4,6 +4,7 @@ WATCH_DIR="test-assets" OUTPUT_FILE="ark-watch-output.txt" INDEX_FILE="$WATCH_DIR/.ark/index" +ARK_CLI="./target/release/ark-cli" # Function to check the index file content check_index() { @@ -34,7 +35,7 @@ check_index() { # Start `ark-cli watch` in the background and capture output echo "Starting ark-cli watch on $WATCH_DIR..." -ark-cli watch "$WATCH_DIR" > "$OUTPUT_FILE" & +$ARK_CLI watch "$WATCH_DIR" > "$OUTPUT_FILE" & WATCH_PID=$! sleep 1 # Wait a bit to ensure the watch command is up