Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 53 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:
branches: [master]

jobs:
scripts:
name: test scripts
linux-scripts:
name: test Linux scripts
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup Test Environment
run: |
sudo /bin/bash ./test/environment_setup.sh
Expand All @@ -31,6 +31,56 @@ jobs:
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
mkdir -p "$HOME/.docker/cli-plugins"
ln -sf "$(command -v docker-compose)" "$HOME/.docker/cli-plugins/docker-compose"
docker compose version
- name: Start Colima
run: |
colima start --cpu 2 --memory 4 --disk 20
colima ssh -- sh -lc '
if command -v apk >/dev/null 2>&1; then
sudo apk add --no-cache xz
elif command -v apt-get >/dev/null 2>&1; then
sudo apt-get update && sudo apt-get install -y xz-utils
elif command -v dnf >/dev/null 2>&1; then
sudo dnf install -y xz
elif command -v yum >/dev/null 2>&1; then
sudo yum install -y xz
else
echo "Unsupported Colima guest OS; could not install xz" >&2
exit 1
fi
command -v xz
xz --version
'
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
Expand Down
Loading