Improve Hedera Solo Output Validation in CI Workflow #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Simple Usage | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- name: Setup Hedera Solo | ||
uses: ./ | ||
id: solo | ||
- name: Validate Hedera Solo Outputs | ||
run: | | ||
Check failure on line 20 in .github/workflows/basic.yml
|
||
REQUIRED_OUTPUTS=("accountId" "privateKey" "publicKey") | ||
for output in "${REQUIRED_OUTPUTS[@]}"; do | ||
if [ -z "${{ steps.solo.outputs.$output }}" ]; then | ||
echo "Error: $output is missing!" | ||
exit 1 | ||
fi | ||
done | ||
echo "All outputs are valid." |