Skip to content

Enable PR Testing on All Platforms with Validation Checks to GitHub Actions Workflows #6

Enable PR Testing on All Platforms with Validation Checks to GitHub Actions Workflows

Enable PR Testing on All Platforms with Validation Checks to GitHub Actions Workflows #6

Workflow file for this run

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