diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 8e83602..b433e19 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -54,7 +54,7 @@ jobs: 3.0.x - name: Verify dotnet shell: pwsh - run: __tests__/verify-dotnet.ps1 2.2.402 3.1.404 + run: __tests__/verify-dotnet.ps1 2.2.402 3.1.404 3.0 test-setup-full-version: runs-on: ${{ matrix.operating-system }} diff --git a/__tests__/verify-dotnet.ps1 b/__tests__/verify-dotnet.ps1 index 7068c87..3a377c7 100755 --- a/__tests__/verify-dotnet.ps1 +++ b/__tests__/verify-dotnet.ps1 @@ -20,7 +20,7 @@ if($args.count -eq 1) if ($args[1]) { # SDKs are listed on multiple lines with the path afterwards in square brackets - $versions = & $dotnet --list-sdks | ForEach-Object { $_.SubString(0, $_.IndexOf('[')).Trim() } + $versions = & $dotnet --list-sdks select -Unique | ForEach-Object { $_.SubString(0, $_.IndexOf('[')).Trim() } Write-Host "Installed versions: $versions" $InstalledVersionCount = 0 foreach($arg in $args){