Skip to content

Stabilize WinGet fetch in test workflow#4475

Merged
Marc-André Moreau (mamoreau-devolutions) merged 1 commit intomainfrom
fix-tests
Mar 14, 2026
Merged

Stabilize WinGet fetch in test workflow#4475
Marc-André Moreau (mamoreau-devolutions) merged 1 commit intomainfrom
fix-tests

Conversation

@mamoreau-devolutions

Summary

  • restore a cached WinGet CLI bundle in the .NET test workflow before running tests
  • fetch the WinGet CLI bundle explicitly with GITHUB_TOKEN when the cache is missing
  • pass GITHUB_TOKEN into the test step as a fallback for the WinGet manager build target

Problem

The .NET test workflow could fail on clean runners while building the WinGet manager project. When the bundled WinGet payload was missing, MSBuild invoked scripts/fetch-winget-cli.ps1 during dotnet test, but the workflow had not prepared the payload the same way build-release.yml already does.

Validation

@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) merged commit 7054ea8 into main Mar 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants