Skip to content

Commit

Permalink
Run all tx
Browse files Browse the repository at this point in the history
  • Loading branch information
lealobanov committed Dec 4, 2024
1 parent 73c83bc commit 90dbbad
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/cadence_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,18 @@ jobs:
sleep 5 # Wait for the emulator to start
flow project deploy --network=emulator # Deploy the recipe contracts indicated in flow.json
- name: Run Transaction
- name: Run All Transactions
run: |
echo "Running recipe transaction with Flow emulator..."
TRANSACTION_OUTPUT=$(flow transactions send cadence/transaction.cdc --signer emulator-account)
echo "$TRANSACTION_OUTPUT"
if echo "$TRANSACTION_OUTPUT" | grep -q "Transaction Error"; then
echo "Transaction Error detected, failing the action..."
exit 1
fi
echo "Running all transactions in the transactions folder..."
for file in ./cadence/transactions/*.cdc; do
echo "Running transaction: $file"
TRANSACTION_OUTPUT=$(flow transactions send "$file" --signer emulator-account)
echo "$TRANSACTION_OUTPUT"
if echo "$TRANSACTION_OUTPUT" | grep -q "Transaction Error"; then
echo "Transaction Error detected in $file, failing the action..."
exit 1
fi
done
- name: Run Cadence Lint
run: |
Expand Down

0 comments on commit 90dbbad

Please sign in to comment.