fix(ci): install module before prepare-test-vm.sh runs

The script uses PSProxmoxVE cmdlets but the module was only copied to
the module path after it ran. Move the install step before the test VM
deployment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Clint Branham
2026-03-19 14:20:34 -05:00
parent 518e5c838a
commit 33962da887
+10 -8
View File
@@ -264,6 +264,15 @@ jobs:
exit 1
fi
# ── Install module ────────────────────────────────────────────────
- name: Copy module to module path
shell: pwsh
run: |
$modulePath = "$HOME/.local/share/powershell/Modules/PSProxmoxVE"
New-Item -ItemType Directory -Path $modulePath -Force | Out-Null
Copy-Item -Path ./publish/netstandard2.0/* -Destination $modulePath -Recurse -Force
# ── Prepare test Linux VM ────────────────────────────────────────
- name: Deploy test Linux VM to nested PVE
@@ -280,14 +289,7 @@ jobs:
LINUX_VMID=$(echo "$OUTPUT" | grep "^LINUX_VMID=" | cut -d= -f2)
echo "linux_vmid=${LINUX_VMID}" >> "$GITHUB_OUTPUT"
# ── Install module and run tests ─────────────────────────────────
- name: Copy module to module path
shell: pwsh
run: |
$modulePath = "$HOME/.local/share/powershell/Modules/PSProxmoxVE"
New-Item -ItemType Directory -Path $modulePath -Force | Out-Null
Copy-Item -Path ./publish/netstandard2.0/* -Destination $modulePath -Recurse -Force
# ── Run tests ─────────────────────────────────────────────────────
- name: Create test ISO
shell: bash