Skip to content

Commit

Permalink
fix: fund account when running tests (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
tchataigner committed Jul 30, 2024
1 parent 7e11096 commit 19b75a2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,22 @@ jobs:
python3 --version
curl -fsSL "https://aptos.dev/scripts/install_cli.py" | python3
echo "PATH=$HOME/.local/bin:$PATH" | tee -a $GITHUB_ENV
- name: Check Aptos account balance
id: check_balance
run: |
balance_output=$(aptos account balance --profile testnet)
echo "Balance output: $balance_output"
balance=$(echo $balance_output | jq '.Result[0].balance')
echo "Balance value: $balance"
if [ "$balance" -lt 100000000 ]; then
echo "Balance is below threshold. Funding the account..."
aptos account fund-with-faucet --profile testnet
else
echo "Balance is sufficient. No action needed."
fi
working-directory: ${{ github.workspace }}/ethereum/move
- name: Run unit tests
run: |
aptos move test --named-addresses plonk_verifier_addr=devnet
Expand Down

0 comments on commit 19b75a2

Please sign in to comment.