mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 13:56:47 +00:00
Implement Pester tests for Android SDKs (#1221)
* Add Android SDKs tests * Fix path to android helpers * Fix path to sdkmanager * Remove extra and add-ons tests * Add verbose option to sdkmanager * Add additional tools test * Fix extra and addons tests * Fix extra and addons android packages * Fix image templates
This commit is contained in:
committed by
GitHub
parent
b47ba413c9
commit
58f3ee85cb
@@ -463,3 +463,20 @@ function Extract-7Zip {
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
function Install-AndroidSDKPackages {
|
||||
Param
|
||||
(
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string]$AndroidSDKManagerPath,
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string]$AndroidSDKRootPath,
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string[]]$AndroidPackages,
|
||||
[string] $PrefixPackageName
|
||||
)
|
||||
|
||||
foreach ($package in $AndroidPackages) {
|
||||
& $AndroidSDKManagerPath --sdk_root=$AndroidSDKRootPath "$PrefixPackageName$package"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user