Skip to content

chore: beautify commands #87

chore: beautify commands

chore: beautify commands #87

Workflow file for this run

## This is a temporary flow, until we have our custom docker images that work with systemd for linux.
## Once we have that, we can remove this and use docker containers in parallel, covering the various OS:es.
name: Node Command OS-Matrix Test
on:
workflow_dispatch:
pull_request:
paths:
- "cmd/**"
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.22
- name: Run Ubuntu commands
run: |
export GOCOVERDIR=$(pwd)/coverage
mkdir -p $GOCOVERDIR
go build -cover .
./algorun-tui install
systemctl status algorand.service
export TOKEN=$(cat /var/lib/algorand/algod.admin.token)
curl http://localhost:8080/v2/participation -H "X-Algo-API-Token: $TOKEN" | grep "null"
./algorun-tui stop
./algorun-tui upgrade
./algorun-tui debug
sleep 10
./algorun-tui catchup
./algorun-tui catchup debug
./algorun-tui catchup stop
./algorun-tui stop
./algorun-tui uninstall
go tool covdata textfmt -i=$GOCOVERDIR -o coverage.txt
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
macos:
runs-on: macos-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Go
run: brew install go
- name: Run MacOs commands
run: |
export GOCOVERDIR=$(pwd)/coverage
mkdir -p $GOCOVERDIR
go build -cover .
./algorun-tui install
sudo launchctl print system/com.algorand.algod
sleep 5
export TOKEN=$(cat ~/.algorand/algod.admin.token)
curl http://localhost:8080/v2/participation -H "X-Algo-API-Token: $TOKEN" | grep "null"
./algorun-tui stop
./algorun-tui upgrade
./algorun-tui debug
sleep 10
./algorun-tui catchup
./algorun-tui catchup debug
./algorun-tui catchup stop
./algorun-tui stop
./algorun-tui uninstall
go tool covdata textfmt -i=$GOCOVERDIR -o coverage.txt
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}