From 6871bef77da8aaa15bd1b9b2587b76f0be848717 Mon Sep 17 00:00:00 2001 From: Clint Branham Date: Thu, 19 Mar 2026 08:41:43 -0500 Subject: [PATCH] fix(ci): unset DOTNET_ROOT for Pester steps, add 15min timeout The setup-dotnet action sets DOTNET_ROOT which overrides PS 7.x's bundled .NET runtime for assembly resolution, causing System.Runtime 9.0.0.0 FileNotFoundException. Unsetting it for Pester steps lets PS use its own runtime. Also adds timeout-minutes: 15 to prevent runaway jobs from consuming Actions minutes (PS 5.1 job was hanging for 5+ hours). Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/integration-tests.yml | 2 ++ .github/workflows/unit-tests.yml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index e5fcb21..c9917c3 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -201,6 +201,8 @@ jobs: - name: Run integration tests shell: pwsh env: + DOTNET_ROOT: '' + DOTNET_MULTILEVEL_LOOKUP: '' PVETEST_HOST: ${{ steps.target.outputs.host }} PVETEST_PORT: ${{ steps.target.outputs.port }} PVETEST_APITOKEN: ${{ steps.target.outputs.token }} diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index b89a8a3..3f91a56 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -8,6 +8,7 @@ on: jobs: pester-tests: + timeout-minutes: 15 strategy: fail-fast: false matrix: @@ -110,6 +111,9 @@ jobs: - name: Run Pester tests (PS 7.x) if: matrix.ps_version != '5.1' shell: pwsh + env: + DOTNET_ROOT: '' + DOTNET_MULTILEVEL_LOOKUP: '' run: | Import-Module Pester -MinimumVersion 5.0 $config = New-PesterConfiguration