Skip to content

Commit

Permalink
fix: use ark-cli from path directly
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <[email protected]>
  • Loading branch information
tareknaser committed Oct 29, 2024
1 parent 71a81e9 commit c0fee87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
Expand Down
3 changes: 2 additions & 1 deletion integration/ark-cli-watch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit c0fee87

Please sign in to comment.