Skip to content

Add xz installation and check in macOS test setup #741

Add xz installation and check in macOS test setup

Add xz installation and check in macOS test setup #741

Workflow file for this run

name: Scripts
on:
workflow_dispatch:
push:
branches-ignore: [master]
pull_request:
branches: [master]
jobs:
linux-scripts:
name: test Linux scripts
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Test Environment
run: |
sudo /bin/bash ./test/environment_setup.sh
- name: Install Prerequisites
run: |
sudo /bin/bash ./scripts/dappnode_install_pre.sh UPDATE
- name: Install DAppNode
run: |
sudo /bin/bash ./scripts/dappnode_install.sh --local-profile-path "$PWD/.dappnode_profile"
- name: Show installation logs
run: |
cat /usr/src/dappnode/logs/install.log
cat /usr/src/dappnode/logs/dappnode_install.log
- name: Uninstall DAppNode
run: |
sudo /bin/bash ./scripts/dappnode_uninstall.sh y
macos-scripts:
name: test macOS scripts
runs-on: macos-15-intel
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Docker client and Colima
run: |
brew install docker docker-compose colima xz
mkdir -p "$HOME/.docker/cli-plugins"
ln -sf "$(command -v docker-compose)" "$HOME/.docker/cli-plugins/docker-compose"
docker compose version
xz --version
- name: Start Colima
run: |
colima start --cpu 2 --memory 4 --disk 20
docker version
docker info
- name: Install DAppNode
run: |
/bin/bash ./scripts/dappnode_install.sh --local-profile-path "$PWD/.dappnode_profile"
- name: Show installation logs
if: always()
run: |
cat "$HOME/dappnode/logs/dappnode_install.log"
- name: Uninstall DAppNode
if: always()
run: |
/bin/bash ./scripts/dappnode_uninstall.sh y
- name: Stop Colima
if: always()
run: |
colima stop
iso:
name: test Debian and Ubuntu ISO
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
# Create Debian ISO
- name: create Debian ISO
run: |
export BASE_OS=debian
export UNATTENDED=true
docker compose up --build
ls images/
# Verify Debian ISO creation
- name: verify Debian ISO
run: |
ls -lrt images/Dappnode-debian-*.iso
# Create Ubuntu ISO
- name: create Ubuntu ISO
run: |
export BASE_OS=ubuntu
export UNATTENDED=true
docker compose up --build
ls images/
# Verify Ubuntu ISO creation
- name: verify Ubuntu ISO
run: |
ls -lrt images/Dappnode-ubuntu-*.iso