From cac3e705e4b6319258c3a6aaf80116f2d542a076 Mon Sep 17 00:00:00 2001 From: Clint Branham Date: Wed, 18 Mar 2026 13:10:07 -0500 Subject: [PATCH] fix(ci): use net9.0 and system dotnet on self-hosted runner The self-hosted runner has dotnet 9.0 installed globally. Drop the setup-dotnet step (which tried to install to /usr/share/dotnet without permission) and build/publish against the project's actual target framework net9.0 instead of the nonexistent net10.0. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/integration-tests.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 3220872..215346a 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -81,15 +81,9 @@ jobs: exit 1 fi - - name: Setup .NET - if: steps.check-secrets.outputs.skip != 'true' - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '10.0.x' - - name: Build module if: steps.check-secrets.outputs.skip != 'true' - run: dotnet publish src/PSProxmoxVE/PSProxmoxVE.csproj --configuration Release --framework net10.0 --output ./publish/net10.0 + run: dotnet publish src/PSProxmoxVE/PSProxmoxVE.csproj --configuration Release --framework net9.0 --output ./publish/net9.0 - name: Install Pester 5 if: steps.check-secrets.outputs.skip != 'true' @@ -102,7 +96,7 @@ jobs: run: | $modulePath = "$HOME/.local/share/powershell/Modules/PSProxmoxVE" New-Item -ItemType Directory -Path $modulePath -Force | Out-Null - Copy-Item -Path ./publish/net10.0/* -Destination $modulePath -Recurse -Force + Copy-Item -Path ./publish/net9.0/* -Destination $modulePath -Recurse -Force - name: Run integration tests if: steps.check-secrets.outputs.skip != 'true'