mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Merge main into install-codeql-bundle.
This commit is contained in:
@@ -97,8 +97,8 @@ foreach($pypyTool in $pypyTools)
|
||||
foreach($pypyVersion in $pypyTool.versions)
|
||||
{
|
||||
# Query latest PyPy version
|
||||
$filter = '{0}{1}-*-{2}.zip' -f $pypyTool.name, $pypyVersion, $pypyTool.platform
|
||||
$latestMajorPyPyVersion = $pypyVersions | Where-Object {$_.name -like $filter} | Select-Object -First 1
|
||||
$filter = '{0}{1}-v\d+\.\d+\.\d+-{2}.zip' -f $pypyTool.name, $pypyVersion, $pypyTool.platform
|
||||
$latestMajorPyPyVersion = $pypyVersions | Where-Object {$_.name -match $filter} | Select-Object -First 1
|
||||
|
||||
if ($latestMajorPyPyVersion)
|
||||
{
|
||||
|
||||
20
images/win/scripts/Installers/Install-Vsix.ps1
Normal file
20
images/win/scripts/Installers/Install-Vsix.ps1
Normal file
@@ -0,0 +1,20 @@
|
||||
###################################################################################
|
||||
## File: Install-Vsix.ps1
|
||||
## Desc: Install the Visual Studio Extensions from toolset.json
|
||||
###################################################################################
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$toolset = Get-ToolsetContent
|
||||
$vsixPackagesList = $toolset.visualStudio.vsix
|
||||
if (-not $vsixPackagesList) {
|
||||
Write-Host "No extensions to install"
|
||||
exit 0
|
||||
}
|
||||
|
||||
$vsVersion = $toolset.visualStudio.Version
|
||||
$vsixPackagesList | ForEach-Object {
|
||||
Install-VsixExtension -Url $_.url -Name $_.name -VSversion $vsVersion
|
||||
}
|
||||
|
||||
Invoke-PesterTests -TestFile "Vsix"
|
||||
@@ -1,12 +0,0 @@
|
||||
###################################################################################
|
||||
## File: Install-SSDTExtensions.ps1
|
||||
## Desc: Install the extensions previously known as SSDT package
|
||||
###################################################################################
|
||||
|
||||
Import-Module -Name ImageHelpers -Force
|
||||
|
||||
Install-VsixExtension -Url 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftAnalysisServicesModelingProjects/2.9.5/vspackage' -Name 'Microsoft.DataTools.AnalysisServices.vsix' -VSversion "2019"
|
||||
Install-VsixExtension -Url 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/SSIS/vsextensions/SqlServerIntegrationServicesProjects/3.4/vspackage' -Name 'Microsoft.DataTools.IntegrationServices.exe' -VSversion "2019"
|
||||
Install-VsixExtension -Url 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftReportProjectsforVisualStudio/2.6.3/vspackage' -Name 'Microsoft.DataTools.ReportingServices.vsix' -VSversion "2019"
|
||||
|
||||
Invoke-PesterTests -TestFile "SSDTExtensions"
|
||||
13
images/win/scripts/Tests/Vsix.Tests.ps1
Normal file
13
images/win/scripts/Tests/Vsix.Tests.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
Describe "Vsix" {
|
||||
$toolset = Get-ToolsetContent
|
||||
$requiredVsixs = $toolset.visualStudio.vsix
|
||||
|
||||
$allPackages = (Get-VSSetupInstance | Select-VsSetupInstance -Product *).Packages
|
||||
$testCases = $requiredVsixs | ForEach-Object { @{ VsixId = $_.Id; AllPackages = $allPackages }}
|
||||
if ($testCases.Count -gt 0) {
|
||||
It "Extension <VsixId>" -TestCases $testCases {
|
||||
$objVsix = $AllPackages | Where-Object { $_.id -eq $VsixId }
|
||||
$objVsix | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user