mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] win: add validation InstalledSoftware.md and testResults.xml files (#3960)
* win: add validation InstalledSoftware.md file
This commit is contained in:
committed by
GitHub
parent
ca51829236
commit
5aa96839a8
@@ -21,7 +21,7 @@ function Get-AndroidSDKManagerPath {
|
||||
|
||||
function Get-AndroidInstalledPackages {
|
||||
$androidSDKManagerPath = Get-AndroidSDKManagerPath
|
||||
$androidSDKManagerList = & $androidSDKManagerPath --list_installed
|
||||
$androidSDKManagerList = cmd /c "$androidSDKManagerPath --list_installed 2>&1"
|
||||
return $androidSDKManagerList
|
||||
}
|
||||
|
||||
|
||||
@@ -271,8 +271,7 @@ function Get-VisualCPPComponents {
|
||||
}
|
||||
|
||||
function Get-DacFxVersion {
|
||||
cd "C:\Program Files\Microsoft SQL Server\150\DAC\bin\"
|
||||
$dacfxversion = (./sqlpackage.exe /version)
|
||||
$dacfxversion = & "$env:ProgramFiles\Microsoft SQL Server\150\DAC\bin\sqlpackage.exe" /version
|
||||
return "DacFx $dacfxversion"
|
||||
}
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ function Get-ApacheVersion {
|
||||
}
|
||||
|
||||
function Get-NginxVersion {
|
||||
$nginxBinPath = Join-Path (Get-NginxPath) "\nginx"
|
||||
(. $nginxBinPath -v 2>&1 | Select-String -Pattern "nginx/") -match "nginx/(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$nginxBinPath = Join-Path (Get-NginxPath) "nginx"
|
||||
(cmd /c "$nginxBinPath -v 2>&1") -match "nginx/(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
return $Matches.Version
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user