mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-20 07:35:10 +00:00
verify version with wildcard
- add logic to remove duplicate sdk in verification test Please enter the commit message for your changes. Lines starting
This commit is contained in:
parent
3e4bb40ad3
commit
42dcac127e
2
.github/workflows/workflow.yml
vendored
2
.github/workflows/workflow.yml
vendored
@ -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 }}
|
||||
|
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user