mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-14 05:39:11 +00:00
Fix SDK tests for release build (#17678)
This commit is contained in:
1 parent
417d9315f9
commit
bcafe74c17
1 file changed
+4
@@ -122,6 +122,10 @@ jobs:
|
||||
|
||||
Get-Content ./NuGet.Config
|
||||
|
||||
# Add workaround to unblock xUnit testing see issue: https://github.com/dotnet/sdk/issues/26462
|
||||
$dotnetPath = if ($IsWindows) { "$env:LocalAppData\Microsoft\dotnet" } else { "$env:HOME/.dotnet" }
|
||||
$env:DOTNET_ROOT = $dotnetPath
|
||||
|
||||
dotnet --info
|
||||
dotnet restore
|
||||
dotnet test /property:RELEASE_VERSION=$releaseVersion --test-adapter-path:. "--logger:xunit;LogFilePath=$(System.DefaultWorkingDirectory)/test-hosting.xml"
|
||||
|
||||
Reference in new issue
Block a user