Files
mu300-linux/.github/workflows/tests.yml
T
Abdurrahman Kaan DikeçandClaude Opus 5.5 4f2a3e1994 Merge main: the SD card, the driver fixes, the Magisk installer, mu300-extra and the eMMC by type next to openwrt-luci
Conflicts kept both sides: boot/init's region marker before the usb-net and pick-root blocks; android-vendor-start
links the partitions of the eMMC found by type, through the fork-free link_partitions; the OpenWrt build links the
shared path-commands list and keeps the panel's own services and mu300-sms; no VPN engine in either image (the vpn
extra) while the panel's docker mounts stay positional; assemble.sh enables mu300-atd2 next to the update notice;
android-install keeps openwrt-luci and the extras on a legacy wipe; make-release audits both the panel asset and the
vpn extra.

The third system in main's new places: mu300-extra counts a disk with only openwrt-luci as mounted, the Magisk
installer sees an installed openwrt-luci (space, plan, MU300_BOOT_OS) and names the installed systems in its last
hint (the fixed "ubuntu|openwrt" text became the {1} form install.sh already uses). Tests that read what git tracks
skip where there is no checkout (a container with only the worktree mounted).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
2026-10-05 17:25:26 +03:00

52 lines
1.7 KiB
YAML

name: Tests
# tests/: the device scripts under every shell they run with (dash and bash on Ubuntu, busybox ash on OpenWrt), the
# boot image builder, the installers' translations and rules, and install.ps1's functions under Windows PowerShell
# 5.1 and PowerShell 7. Run them locally with: python3 -m unittest discover -s tests
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
unix:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4 # the control panel's JavaScript tests
with:
node-version: 22
- name: shells and lz4
run: |
if [ "$RUNNER_OS" = Linux ]; then sudo apt-get install -y -qq dash busybox lz4 zip unzip cpio >/dev/null; fi
python3 -m pip install -q lz4 || python3 -m pip install -q --break-system-packages lz4
- name: tests
run: |
cd tests
python3 -c 'import helpers; print("shells:", helpers.shells())'
python3 -m unittest discover -s . -v
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: install.ps1 functions (Windows PowerShell 5.1)
shell: powershell
run: powershell -NoProfile -ExecutionPolicy Bypass -File tests\installer.Tests.ps1
- name: install.ps1 functions (PowerShell 7)
shell: pwsh
run: pwsh -NoProfile -File tests\installer.Tests.ps1
- name: boot image builder (the Windows install runs it too)
shell: pwsh
run: |
python -m pip install -q lz4
cd tests
python -m unittest test_boot_image -v