Skip to content

Commit

Permalink
ci: downloading venom binary if not installed in runner when running …
Browse files Browse the repository at this point in the history
…e2e for eigendb
  • Loading branch information
Ryan-Awad committed Dec 29, 2024
1 parent e3a765c commit 92cb557
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/

# moon
.moon/cache
Expand Down
12 changes: 11 additions & 1 deletion apps/eigendb/run_e2e.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
#!/bin/bash
docker compose -f docker-compose-test.yml up -d --build

venom run e2e/ --output-dir=e2e/logs
venom version
if $? -ne 0; then
echo "Venom is not installed. Installing venom binary."
curl https://github.com/ovh/venom/releases/download/v1.1.0/venom.linux-amd64 -L -o ./venom && chmod +x ./venom
VENOM=./venom
else
echo "Venom is already installed."
VENOM=$(which venom)
fi

$VENOM run e2e/ --output-dir=e2e/logs
E2E_TEST_EXIT_CODE=$?

docker compose down
Expand Down

0 comments on commit 92cb557

Please sign in to comment.