Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth committed Aug 16, 2024
1 parent f5aca59 commit 4533a0f
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/testnode.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,31 @@
# Start the test node and get PID, to terminate it once send-l2 is done.
cd ${GITHUB_WORKSPACE}

while [[ $# -gt 0 ]]; do
case $1 in
--pos)
pos=true
shift
;;
*)
echo "Unknown option $1"
exit 1
;;
esac
done

# TODO once develop is merged into nitro-contract's master, remove the NITRO_CONTRACTS_BRANCH env var
./test-node.bash --init-force --l3node --no-simple --detach
if [ "$pos" = true ]; then
echo "Running with --pos"
./test-node.bash --init-force --l3node --no-simple --detach --pos
else
./test-node.bash --init-force --l3node --no-simple --detach
fi

if [ $? -ne 0 ]; then
echo "test-node.bash failed"
exit 1
fi

START=$(date +%s)
L2_TRANSACTION_SUCCEEDED=false
Expand Down

0 comments on commit 4533a0f

Please sign in to comment.