mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-07-26 07:58:14 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user