Skip to content

chore: update merod command instructions #231

chore: update merod command instructions

chore: update merod command instructions #231

name: Test Install Script
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-install:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
arch: [x86_64, aarch64]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@v3
# Determine Branch Name
- name: Set Branch Name
id: branch-name
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
else
echo "BRANCH_NAME=${{ github.ref_name }}" >> $GITHUB_ENV
fi
# Run the merod script
- name: Test installation script
run: |
curl -s https://raw.githubusercontent.com/calimero-network/core/${{ env.BRANCH_NAME }}/scripts/install-merod.sh | bash
# Validate the binary installation
- name: Validate merod installation
run: |
which merod
merod --version
# Run the meroctl script
- name: Test installation script
run: |
curl -s https://raw.githubusercontent.com/calimero-network/core/${{ env.BRANCH_NAME }}/scripts/install-meroctl.sh | bash
# Validate the binary installation
- name: Validate meroctl installation
run: |
which meroctl
meroctl --version