Enable PR Testing on All Platforms with Validation Checks to GitHub Actions Workflows #6
Workflow file for this run
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 - PR Check | |
on: | |
pull_request: | |
branches: | |
- main # Change as necessary to specify branches to trigger on | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] # Specifies OS matrix | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Hedera Solo | |
uses: ./ | |
id: solo | |
- name: Validate Hedera Solo Output | |
run: | | |
echo "Account ID: ${{ steps.solo.outputs.accountId }}" | |
echo "Private Key: ${{ steps.solo.outputs.privateKey }}" | |
echo "Public Key: ${{ steps.solo.outputs.publicKey }}" | |
# Validation checks | |
if [ -z "${{ steps.solo.outputs.accountId }}" ]; then | |
echo "Error: Account ID is empty" | |
exit 1 | |
fi | |
if [ -z "${{ steps.solo.outputs.privateKey }}" ]; then | |
echo "Error: Private Key is empty" | |
exit 1 | |
fi | |
if [ -z "${{ steps.solo.outputs.publicKey }}" ]; then | |
echo "Error: Public Key is empty" | |
exit 1 | |
fi |