From 33962da8872a211f8ce042445e6bf08711e7f19e Mon Sep 17 00:00:00 2001 From: Clint Branham Date: Thu, 19 Mar 2026 14:20:34 -0500 Subject: [PATCH] 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) --- .github/workflows/integration-tests.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 404d4b9..6bfc0b4 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -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