Skip to content

Commit

Permalink
as
Browse files Browse the repository at this point in the history
  • Loading branch information
quiet-node committed Sep 11, 2023
1 parent e2eae6d commit 5255fa5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/dapp-playground-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ jobs:
cd ./system-contract-dapp-playground
npm install
if [[ "${{inputs.jobTitle}}" == "abi regression test" ]]; then
echo abi test
result=$(npm run prerequisite-check 2>&1) # Capture prerequisite-test output
echo "$result"
# Check if the output contains "CONTRACT ASSETS UNAVAILABLE" => FAILED case
if echo "$result" | grep -q "CONTRACT ASSETS UNAVAILABLE"; then
echo "Test failed: CONTRACT ASSETS UNAVAILABLE found"
exit 1
fi
else
${{inputs.jobCommand}}
fi

0 comments on commit 5255fa5

Please sign in to comment.