From bf184862fecaecfbb3750bc7aadde24737343bb8 Mon Sep 17 00:00:00 2001 From: Simon Ensslen Date: Wed, 26 Aug 2026 01:00:36 +0200 Subject: [PATCH] CI: run the url-to-license-mapping tests only once test_windows and the release job both discovered test executables with a NuGet*.Test glob. NuGetUtility.UrlToLicenseMapping.Test matches it, so the Selenium suite ran again there on top of its own test_url_to_license_mapping job. Name the two projects each job is meant to cover instead, and drop the now-unused Chrome setup from the release job. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/action.yml | 7 ++++--- .github/workflows/release.yml | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 63b44a24..8e84e5f1 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -115,9 +115,10 @@ jobs: shell: pwsh run: | $failed = $false - Get-ChildItem "tests\*\bin\TestWindows\${{ matrix.framework }}\NuGet*.Test.exe" | ForEach-Object { - Write-Host "Running: $_" - & "$_" + "NuGetUtility.Test", "NuGetLicense.Test" | ForEach-Object { + $exe = "tests\$_\bin\TestWindows\${{ matrix.framework }}\$_.exe" + Write-Host "Running: $exe" + & $exe if ($LASTEXITCODE -ne 0) { $failed = $true } } if ($failed) { exit 1 } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9cbbe86a..a4e7655f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,15 +30,15 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3 - - uses: browser-actions/setup-chrome@2e1d749697dd1612b833dba4a722266286fbefcd # v2.1.2 - - name: build run: msbuild -t:rebuild -restore -p:RestorePackagesConfig=true -property:Configuration=Release NuGetUtility.slnx - name: test uses: josepho0918/vstest-action@678efa7c0bdf7a46f6977b47c50f9c6a184ae00e with: - testAssembly: "NuGet*.Test.dll" + testAssembly: | + NuGetUtility.Test.dll + NuGetLicense.Test.dll searchFolder: "tests/*/bin/Release/net10.0/" runInParallel: true