source
stringclasses
1 value
repo
stringclasses
33 values
repo_url
stringclasses
33 values
path
stringlengths
7
179
language
stringclasses
1 value
license
stringclasses
4 values
stars
int64
2.27k
53.4k
ref
stringclasses
4 values
size_bytes
int64
48
259k
text
stringlengths
48
259k
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Msys2.ps1
PowerShell
mit
12,693
main
4,462
################################################################################ ## File: Install-Msys2.ps1 ## Desc: Install Msys2 and 64 & 32 bit gcc, cmake, & llvm ################################################################################ # References # https://github.com/msys2/MINGW-packages/blob/master/a...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Git.ps1
PowerShell
mit
12,693
main
2,205
################################################################################ ## File: Install-Git.ps1 ## Desc: Install Git for Windows ## Supply chain security: Git - checksum validation, Hub CLI - managed by package manager ################################################################################ if (...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-AzureCli.ps1
PowerShell
mit
12,693
main
1,084
################################################################################ ## File: Install-AzureCli.ps1 ## Desc: Install and warm-up Azure CLI ################################################################################ Write-Host 'Install the latest Azure CLI release' $azureCliConfigPath = 'C:\azureCl...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-EdgeDriver.ps1
PowerShell
mit
12,693
main
1,945
################################################################################ ## File: Install-EdgeDriver.ps1 ## Desc: Install Edge WebDriver and configure Microsoft Edge ################################################################################ if (Test-IsArm64) { $driverArch = "arm64" } else { $...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-PowerShell.ps1
PowerShell
mit
12,693
main
1,326
################################################################################ ## File: Configure-Powershell.ps1 ## Desc: Manage PowerShell configuration ################################################################################ #region System Write-Host "Setup PowerShellGet" Install-PackageProvider -Name ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-DeveloperMode.ps1
PowerShell
mit
12,693
main
772
################################################################################ ## File: Configure-DeveloperMode.ps1 ## Desc: Enables Developer Mode by toggling registry setting. Developer Mode is required to enable certain tools (e.g. WinAppDriver). ###############################################################...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-ActionsCache.ps1
PowerShell
mit
12,693
main
1,139
################################################################################ ## File: Install-ActionsCache.ps1 ## Desc: Downloads latest release from https://github.com/actions/action-versions ## Maintainer: #actions-runtime and @TingluoHuang ##########################################################...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Selenium.ps1
PowerShell
mit
12,693
main
1,181
################################################################################ ## File: Install-Selenium.ps1 ## Desc: Install Selenium Server standalone ################################################################################ # Create Selenium directory $seleniumDirectory = "C:\selenium\" New-Item -ItemT...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-PowerShellModules.ps1
PowerShell
mit
12,693
main
1,003
################################################################################ ## File: Install-PowershellModules.ps1 ## Desc: Install common PowerShell modules ################################################################################ # Set TLS1.2 [Net.ServicePointManager]::SecurityProtocol = [Net.Service...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-SystemEnvironment.ps1
PowerShell
mit
12,693
main
656
################################################################################ ## File: Configure-SystemEnvironment.ps1 ## Desc: Configures system environment variables ################################################################################ $variables = @{ "ImageVersion" = $en...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-CodeQLBundle.ps1
PowerShell
mit
12,693
main
3,010
################################################################################ ## File: Install-CodeQLBundle.ps1 ## Desc: Install the CodeQL CLI Bundle to the toolcache. ################################################################################ # Retrieve the latest major version of the CodeQL Action to us...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-Diagnostics.ps1
PowerShell
mit
12,693
main
1,409
################################################################################ ## File: Configure-Diagnostics.ps1 ## Desc: Disables Just-In-Time Debugger and Windows Error Reporting ################################################################################ Write-Host "Disable Just-In-Time Debugger" # Turn...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Pipx.ps1
PowerShell
mit
12,693
main
1,435
################################################################################ ## File: Install-Pipx.ps1 ## Desc: Install pipx and pipx packages ################################################################################ Write-Host "Installing pipx..." $env:PIPX_BIN_DIR = "${env:ProgramFiles(x86)}\pipx_bin"...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-DotnetSDK.ps1
PowerShell
mit
12,693
main
6,609
################################################################################ ## File: Install-DotnetSDK.ps1 ## Desc: Install all released versions of the dotnet sdk and populate package ## cache. Should run after VS and Node ## Supply chain security: checksum validation ################################...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-BaseImage.ps1
PowerShell
mit
12,693
main
3,375
################################################################################ ## File: Configure-BaseImage.ps1 ## Desc: Prepare the base image for software installation ################################################################################ function Disable-InternetExplorerESC { $adminKey = "HKLM:\...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Apache.ps1
PowerShell
mit
12,693
main
872
################################################################################ ## File: Install-Apache.ps1 ## Desc: Install Apache HTTP Server ################################################################################ # Stop w3svc service $w3svcService = Get-Service -Name "w3svc" -ErrorAction SilentlyConti...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Nginx.ps1
PowerShell
mit
12,693
main
846
################################################################################ ## File: Install-Nginx.ps1 ## Desc: Install Nginx ################################################################################ # Stop w3svc service $w3svcService = Get-Service -Name "w3svc" -ErrorAction SilentlyContinue if ($w3svc...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-DynamicPort.ps1
PowerShell
mit
12,693
main
1,330
################################################################################ ## File: Configure-DynamicPort.ps1 ## Desc: Configure dynamic port range for TCP and UDP to start at port 49152 ## and to end at the 65536 (16384 ports) ##########################################################################...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-WindowsUpdatesAfterReboot.ps1
PowerShell
mit
12,693
main
640
################################################################################ ## File: Install-WindowsUpdatesAfterReboot.ps1 ## Desc: Waits for Windows Updates to finish installing after reboot ################################################################################ Invoke-ScriptBlockWithRetry -RetryCount...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-User.ps1
PowerShell
mit
12,693
main
2,808
################################################################################ ## File: Configure-User.ps1 ## Desc: Performs user part of warm up and moves data to C:\Users\Default ################################################################################ # # more: https://github.com/actions/runner-images-...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Wix.ps1
PowerShell
mit
12,693
main
565
################################################################################ ## File: Install-Wix.ps1 ## Desc: Install WIX. ################################################################################ Install-ChocoPackage wixtoolset -ArgumentList "--force" Update-Environment $currentPath = [System.Environ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Post-Build-Validation.ps1
PowerShell
mit
12,693
main
983
################################################################################ ## File: post-build-validation.sh ## Desc: Validate different aspects of the image after build ################################################################################ Write-Host "Test Microsoft Defender not set up using 'sc q...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-PowershellCore.ps1
PowerShell
mit
12,693
main
2,218
################################################################################ ## File: Install-PowershellCore.ps1 ## Desc: Install PowerShell Core ## Supply chain security: checksum validation ################################################################################ $ErrorActionPreference = "Stop" if (...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-MongoDB.ps1
PowerShell
mit
12,693
main
2,195
#################################################################################### ## File: Install-MongoDB.ps1 ## Desc: Install MongoDB #################################################################################### # Install mongodb package $toolsetContent = Get-ToolsetContent $toolsetVersion = $toolsetCo...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Firefox.ps1
PowerShell
mit
12,693
main
3,176
################################################################################ ## File: Install-Firefox.ps1 ## Desc: Install Mozilla Firefox browser and Gecko WebDriver ## Supply chain security: Firefox browser - checksum validation ################################################################################...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-AzureCosmosDbEmulator.ps1
PowerShell
mit
12,693
main
405
#################################################################################### ## File: Install-AzureCosmosDbEmulator.ps1 ## Desc: Install Azure CosmosDb Emulator #################################################################################### Install-Binary -Type MSI ` -Url "https://aka.ms/cosmosdb-...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Zstd.ps1
PowerShell
mit
12,693
main
1,035
################################################################################ ## File: Install-Zstd.ps1 ## Desc: Install zstd ################################################################################ $downloadUrl = Resolve-GithubReleaseAssetUrl ` -Repo "facebook/zstd" ` -Version "latest" ` -U...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-WindowsDefender.ps1
PowerShell
mit
12,693
main
1,989
################################################################################ ## File: Configure-WindowsDefender.ps1 ## Desc: Disables Windows Defender ################################################################################ Write-Host "Disable Windows Defender..." $avPreference = @( @{DisableArchiv...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Vcpkg.ps1
PowerShell
mit
12,693
main
915
################################################################################ ## File: Install-Vcpkg.ps1 ## Desc: Install vcpkg ################################################################################ $Uri = 'https://github.com/Microsoft/vcpkg.git' $InstallDir = 'C:\vcpkg' $VcpkgExecPath = 'vcpkg.exe' ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-AndroidSDK.ps1
PowerShell
mit
12,693
main
9,813
################################################################################ ## File: Install-AndroidSDK.ps1 ## Desc: Install and update Android SDK and tools ## Supply chain security: checksum validation ################################################################################ # Actual Android SDK ins...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-ServiceFabricSDK.ps1
PowerShell
mit
12,693
main
1,266
################################################################################ ## File: Install-ServiceFabricSDK.ps1 ## Desc: Install webpicmd and then the service fabric sdk ## must be install after Visual Studio ## Supply chain security: checksum validation #############################################...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-ImageDataFile.ps1
PowerShell
mit
12,693
main
2,949
################################################################################ ## File: Configure-ImageDataFile.ps1 ## Desc: Creates a JSON file with information about the image ################################################################################ $os = Get-CimInstance -ClassName Win32_OperatingSystem...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-DockerCompose.ps1
PowerShell
mit
12,693
main
844
################################################################################ ## File: Install-Docker-Compose.ps1 ## Desc: Install Docker Compose. ################################################################################ Write-Host "Install-Package Docker-Compose v2" $toolsetVersion = (Get-ToolsetContent)...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-VisualStudio.ps1
PowerShell
mit
12,693
main
3,109
################################################################################ ## File: Install-VisualStudio.ps1 ## Desc: Install Visual Studio ################################################################################ $vsToolset = (Get-ToolsetContent).visualStudio if (Test-IsArm64) { $vsArch = "arm64"...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-System.ps1
PowerShell
mit
12,693
main
7,379
################################################################################ ## File: Configure-System.ps1 ## Desc: Applies various configuration settings to the final image ################################################################################ # Set default version to 1 for WSL (aka LXSS - Linux Sub...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-Shell.ps1
PowerShell
mit
12,693
main
764
# Create shells folder $shellPath = "C:\shells" New-Item -Path $shellPath -ItemType Directory | Out-Null if (Test-IsX64) { # add a wrapper for C:\msys64\usr\bin\bash.exe @' @echo off setlocal IF NOT DEFINED MSYS2_PATH_TYPE set MSYS2_PATH_TYPE=strict IF NOT DEFINED MSYSTEM set MSYSTEM=mingw64 set CHERE_INVOKING=1 C...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-SQLOLEDBDriver.ps1
PowerShell
mit
12,693
main
732
################################################################################ ## File: Install-SQLOLEDBDriver.ps1 ## Desc: Install OLE DB Driver for SQL Server ################################################################################ # Install OLE DB Driver 18 Install-Binary -Type MSI ` -Url "https:/...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Configure-DotnetSecureChannel.ps1
PowerShell
mit
12,693
main
664
################################################################################ ## File: Configure-DotnetSecureChannel.ps1 ## Desc: Configure .NET to use TLS 1.2 ################################################################################ $registryPath = "HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319" $na...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-GitHub-CLI.ps1
PowerShell
mit
12,693
main
1,008
################################################################################ ## File: Install-GitHub-CLI.ps1 ## Desc: Install GitHub CLI ## Supply chain security: GitHub CLI - checksum validation ################################################################################ if (Test-IsArm64) { $ghArch =...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-LLVM.ps1
PowerShell
mit
12,693
main
1,521
################################################################################ ## File: Install-LLVM.ps1 ## Desc: Install the stable version of llvm and clang compilers ################################################################################ $llvmVersion = (Get-ToolsetContent).llvm.version if (Test-IsAr...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-AzureDevOpsCli.ps1
PowerShell
mit
12,693
main
1,423
################################################################################ ## File: Install-AzureDevOpsCli.ps1 ## Desc: Install Azure DevOps CLI ################################################################################ $azureDevOpsCliConfigPath = 'C:\azureDevOpsCli' # Store azure-devops-cli cache outs...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Miniconda.ps1
PowerShell
mit
12,693
main
1,221
################################################################################ ## File: Install-Miniconda.ps1 ## Desc: Install the latest version of Miniconda and set $env:CONDA ## Supply chain security: checksum validation ################################################################################ $condaD...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-NativeImages.ps1
PowerShell
mit
12,693
main
1,186
################################################################################ ## File: Install-NativeImages.ps1 ## Desc: Generate and install native images for .NET assemblies ################################################################################ Write-Host "NGen: install Microsoft.PowerShell.Utility.Ac...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-AliyunCli.ps1
PowerShell
mit
12,693
main
1,189
################################################################################ ## File: Install-AliyunCli.ps1 ## Desc: Install Alibaba Cloud CLI ## Supply chain security: Alibaba Cloud CLI - checksum validation ################################################################################ Write-Host "Download...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-WinAppDriver.ps1
PowerShell
mit
12,693
main
669
#################################################################################### ## File: Install-WinAppDriver.ps1 ## Desc: Install Windows Application Driver (WinAppDriver) #################################################################################### [Net.ServicePointManager]::SecurityProtocol = [Net.S...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-IEWebDriver.ps1
PowerShell
mit
12,693
main
1,241
################################################################################ ## File: Install-IEWebDriver.ps1 ## Desc: Install IE Web Driver ################################################################################ $seleniumMajorVersion = (Get-ToolsetContent).selenium.version $ieDriverUrl = Resolve-Gith...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Rust.ps1
PowerShell
mit
12,693
main
2,179
################################################################################ ## File: Install-Rust.ps1 ## Desc: Install Rust for Windows ## Supply chain security: checksum validation for bootstrap, managed by rustup for workloads ################################################################################ ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Sbt.ps1
PowerShell
mit
12,693
main
501
################################################################################ ## File: Install-Sbt.ps1 ## Desc: Install sbt for Windows ################################################################################ # Install the latest version of sbt. # See https://chocolatey.org/packages/sbt Install-ChocoPac...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Haskell.ps1
PowerShell
mit
12,693
main
2,843
################################################################################ ## File: Install-Haskell.ps1 ## Desc: Install Haskell for Windows ################################################################################ # install minimal ghcup, utilizing pre-installed msys2 at C:\msys64 Write-Host 'Install...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-PHP.ps1
PowerShell
mit
12,693
main
1,245
################################################################################ ## File: Install-PHP.ps1 ## Desc: Install PHP ################################################################################ # Install latest PHP in chocolatey $installDir = "c:\tools\php" $phpMajorMinor = (Get-ToolsetContent).php.v...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-AWSTools.ps1
PowerShell
mit
12,693
main
1,521
################################################################################ ## File: Install-AWSTools.ps1 ## Desc: Install AWS tools: CLI, Session Manager Plugin, AWS SAM CLI ## Supply chain security: AWS CLI - managed by package manager, Session Manager Plugin for the AWS CLI - missing, AWS SAM CLI - checksu...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Ninja.ps1
PowerShell
mit
12,693
main
878
################################################################################ ## File: Install-Ninja.ps1 ## Desc: Install Ninja build system (ARM64 only; x64 is installed via Choco) ################################################################################ $installDir = "C:\Tools\Ninja" Write-Host "Resol...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-NodeJS.ps1
PowerShell
mit
12,693
main
1,574
################################################################################ ## File: Install-NodeJS.ps1 ## Desc: Install nodejs-lts and other common node tools. ## Must run after python is configured ################################################################################ $prefixPath = 'C:\npm...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-KubernetesTools.ps1
PowerShell
mit
12,693
main
1,313
################################################################################ ## File: Install-KubernetesTools.ps1 ## Desc: Install tools for K8s. ## Supply chain security: GitHub Kind - checksum validation, Kubectl, Helm, Minikube - by package manager ###########################################################...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Stack.ps1
PowerShell
mit
12,693
main
1,354
################################################################################ ## File: Install-Stack.ps1 ## Desc: Install Stack for Windows ## Supply chain security: Stack - checksum validation ################################################################################ Write-Host "Get the latest Stack ver...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Kotlin.ps1
PowerShell
mit
12,693
main
1,010
################################################################################ ## File: Install-Kotlin.ps1 ## Desc: Install Kotlin ## Supply chain security: Kotlin - checksum validation ################################################################################ # Install Kotlin $kotlinVersion = (Get-Toolse...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-CMake.ps1
PowerShell
mit
12,693
main
1,029
################################################################################ ## File: Install-CMake.ps1 ## Desc: Install CMake (ARM64 only; x64 is installed via Choco) ## Supply chain security: CMake - checksum validation ################################################################################ # Insta...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Chocolatey.ps1
PowerShell
mit
12,693
main
1,075
################################################################################ ## File: Install-Chocolatey.ps1 ## Desc: Install Chocolatey package manager ################################################################################ Write-Host "Set TLS1.2" [Net.ServicePointManager]::SecurityProtocol = [Net.Se...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-R.ps1
PowerShell
mit
12,693
main
566
################################################################################ ## File: Install-R.ps1 ## Desc: Install R for Windows ################################################################################ Install-ChocoPackage R.Project Install-ChocoPackage rtools if (Test-IsArm64) { $rscriptPathPat...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-MysqlCli.ps1
PowerShell
mit
12,693
main
1,932
################################################################################ ## File: Install-MysqlCli.ps1 ## Desc: Install Mysql CLI ## Supply chain security: checksum validation (visual c++ redistributable package) ################################################################################ # Installing...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-JavaTools.ps1
PowerShell
mit
12,693
main
6,099
################################################################################ ## File: Install-JavaTools.ps1 ## Desc: Install various JDKs and java tools ## Supply chain security: JDK - checksum validation ################################################################################ function Set-JavaPath { ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-OpenSSL.ps1
PowerShell
mit
12,693
main
1,634
################################################################################ ## File: Install-OpenSSL.ps1 ## Desc: Install win64-openssl. ## Supply chain security: checksum validation ################################################################################ if (Test-IsArm64) { $openSSLArch = "ARM" ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-RootCA.ps1
PowerShell
mit
12,693
main
4,606
################################################################################ ## File: Install-RootCA.ps1 ## Desc: Install Root CA certificates ################################################################################ # https://www.sysadmins.lv/blog-en/how-to-retrieve-certificate-purposes-property-with-c...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Mercurial.ps1
PowerShell
mit
12,693
main
417
################################################################################ ## File: Install-Mercurial.ps1 ## Desc: Install Mercurial ################################################################################ Install-ChocoPackage hg -ArgumentList "--version", "6.3.1" Add-MachinePathItem "${env:ProgramF...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-Chrome.ps1
PowerShell
mit
12,693
main
4,268
################################################################################ ## File: Install-Chrome.ps1 ## Desc: Install Google Chrome browser and Chrome WebDriver ################################################################################ if (Test-IsArm64) { $browserDownloadUrl = "https://dl.google....
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-DACFx.ps1
PowerShell
mit
12,693
main
452
#################################################################################### ## File: Install-DACFx.ps1 ## Desc: Install SQL Server® Data-Tier Application Framework (DacFx) for Windows #################################################################################### Install-Binary -Type MSI ` -Url '...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/build/Install-TortoiseSvn.ps1
PowerShell
mit
12,693
main
262
################################################################################ ## File: Install-TortoiseSvn.ps1 ## Desc: Install TortoiseSvn ################################################################################ Install-ChocoPackage tortoisesvn
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Haskell.Tests.ps1
PowerShell
mit
12,693
main
2,422
Describe "Haskell" -Skip:(Test-IsWin11-Arm64) { BeforeDiscovery { if (Test-IsWin11-Arm64) { return } $ghcPackagesPath = "c:\ghcup\ghc" [array] $ghcVersionList = Get-ChildItem -Path $ghcPackagesPath -Filter "*" | ForEach-Object { $_.Name.Trim() } $ghcCount = $ghcVersionList.Count ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Toolset.Tests.ps1
PowerShell
mit
12,693
main
3,217
$toolsExecutables = @{ Python = @( @{ Binary = "python.exe"; Arguments = "--version" }, @{ Binary = "Scripts\pip.exe"; Arguments = "--version" } ) Node = @( @{ Binary = "node.exe"; Arguments = "--version" }, @{ Binary = "npm"; Arguments = "--version" } ) Go = @( ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Browsers.Tests.ps1
PowerShell
mit
12,693
main
5,625
Describe "Chrome" { Context "WebDriver" { It "ChromeWebDriver environment variable and path exists" { $env:ChromeWebDriver | Should -Not -BeNullOrEmpty $env:ChromeWebDriver | Should -BeExactly "C:\SeleniumWebDrivers\ChromeDriver" $env:ChromeWebDriver | Should -Exist ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/PHP.Tests.ps1
PowerShell
mit
12,693
main
516
Describe "PHP" { It "Check PHP version" { $phpMajorMinor = (Get-ToolsetContent).php.version $phpInstalledVersion = php --version | Select-String -Pattern "PHP $phpMajorMinor" $phpInstalledVersion | Should -BeLike "*${phpMajorMinor}*" } It "Check Composer in the PATH" { "comp...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/PowerShellModules.Tests.ps1
PowerShell
mit
12,693
main
852
Describe "PowerShellModules" { $modules = (Get-ToolsetContent).powershellModules $withoutVersionsModules = $modules | Where-Object {-not $_.versions} | ForEach-Object { @{moduleName = $_.name} } $withVersionsModules = $modules | Where-Object {$_.versions} | ForEach-Object { $moduleName ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Java.Tests.ps1
PowerShell
mit
12,693
main
1,625
Describe "Java" { $toolsetJava = (Get-ToolsetContent).java $defaultVersion = $toolsetJava.default $jdkVersions = $toolsetJava.versions [array] $testCases = $jdkVersions | ForEach-Object { @{Version = $_ } } BeforeAll { if (Test-IsArm64) { $expectedArch = "AARCH64" } els...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Helpers.psm1
PowerShell
mit
12,693
main
6,790
[CmdletBinding()] param() # Gets value of environment variable by the name function Get-EnvironmentVariable($variable) { return [System.Environment]::GetEnvironmentVariable($variable, "Machine") } function Invoke-PesterTests { <# .SYNOPSIS Runs Pester tests based on the provided test file and test...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Git.Tests.ps1
PowerShell
mit
12,693
main
754
Describe "Git" { $gitTools = 'bash', 'awk', 'git', 'git-lfs' $gitTestCases = $gitTools | ForEach-Object { @{ toolName = $_ source = [regex]::Escape("$env:ProgramFiles\Git") } } It "<toolName> is installed" -TestCases $gitTestCases { "$toolName --version" ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Node.Tests.ps1
PowerShell
mit
12,693
main
828
Describe "Node.JS" { Context "Basic modules"{ It "<ToolName> " -TestCases @( @{ ToolName = "node" } @{ ToolName = "npm" } ) { "$ToolName --version" | Should -ReturnZeroExitCode } } $globalNpmPackages = (Get-ToolsetContent).npm.global_packages ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/WDK.Tests.ps1
PowerShell
mit
12,693
main
581
Describe "WDK" -Skip:(Test-IsWin25-X64) { It "WDK exists" { $regKey = "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*" $installedApplications = Get-ItemProperty -Path $regKey $WDKVersion = $installedApplications | Where-Object DisplayName -eq 'Windows Driver Kit' | Select-Object -...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Shell.Tests.ps1
PowerShell
mit
12,693
main
482
Describe "Shell" { $shellTestCases = @( @{Name = "C:\shells\gitbash.exe"; Target = "$env:ProgramFiles\Git\bin\bash.exe"}, $(if (-not (Test-IsWin11-Arm64)) { @{Name = "C:\shells\msys2bash.cmd"; Target = $null} }), @{Name = "C:\shells\wslbash.exe"; Target = "$env:SystemRoot\System32\bash.exe"}...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/WindowsFeatures.Tests.ps1
PowerShell
mit
12,693
main
3,183
Describe "WindowsFeatures" { $windowsFeatures = (Get-ToolsetContent).windowsFeatures $testCases = $windowsFeatures | ForEach-Object { @{ Name = $_.name; OptionalFeature = $_.optionalFeature } } It "Windows Feature <Name> is installed" -TestCases $testCases { if ($OptionalFeature) { (Get...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Tools.Tests.ps1
PowerShell
mit
12,693
main
7,654
Describe "Azure Cosmos DB Emulator" { $cosmosDbEmulatorRegKey = Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" | Get-ItemProperty | Where-Object { $_.DisplayName -eq 'Azure Cosmos DB Emulator' } $installDir = $cosmosDbEmulatorRegKey.InstallLocation It "Azure Cosmos DB Emulator ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/CLI.Tools.Tests.ps1
PowerShell
mit
12,693
main
801
Describe "Azure CLI" { It "Azure CLI" { "az --version" | Should -ReturnZeroExitCode } } Describe "Azure DevOps CLI" { It "az devops" { "az devops -h" | Should -ReturnZeroExitCode } } Describe "Aliyun CLI" -Skip:(Test-IsWin25-X64) { It "Aliyun CLI" { "aliyun version" | Shoul...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Miniconda.Tests.ps1
PowerShell
mit
12,693
main
461
Describe "Miniconda" -Skip:(Test-IsWin11-Arm64) { It "Miniconda Environment variables is set. " { ${env:CONDA} | Should -Not -BeNullOrEmpty } It "Miniconda $env:CONDA\<PathTest> " -TestCases @( @{ PathTest = "python.exe" } @{ PathTest = "Scripts\conda.exe" } ) { $condaPa...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Databases.Tests.ps1
PowerShell
mit
12,693
main
3,038
Describe "MongoDB" -Skip:(Test-IsWin11-Arm64) { Context "Version" { It "<ToolName>" -TestCases @( @{ ToolName = "mongos" } @{ ToolName = "mongod" } ) { $toolsetVersion = (Get-ToolsetContent).mongodb.version (& $ToolName --version)[2].Split('"')[-2] | S...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/PowerShellAzModules.Tests.ps1
PowerShell
mit
12,693
main
1,591
Describe "AzureModules" { $modules = (Get-ToolsetContent).azureModules $modulesRootPath = "C:\\Modules" foreach ($module in $modules) { $moduleName = $module.name Context "$moduleName" { foreach ($version in $module.versions) { $modulePath = Join-Path -Path $m...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/ActionArchiveCache.Tests.ps1
PowerShell
mit
12,693
main
621
Describe "ActionArchiveCache" { Context "Action archive cache directory not empty" { It "C:\actionarchivecache not empty" { (Get-ChildItem -Path "C:\actionarchivecache\*.zip" -Recurse).Count | Should -BeGreaterThan 0 } } Context "Action zipball not empty" { $testCases = ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/LLVM.Tests.ps1
PowerShell
mit
12,693
main
291
Describe "Clang/LLVM" { BeforeAll { $toolsetVersion = (Get-ToolsetContent).llvm.version } It "Clang/LLVM <toolsetVersion> installed and version is correct" { $clangVersion = clang --version $clangVersion[0] | Should -BeLike "*${toolsetVersion}*" } }
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/SSDTExtensions.Tests.ps1
PowerShell
mit
12,693
main
328
Describe "SSDTExtensions" { #These extensions don't have any proper name in the state.packages.json file, only id is available, which can be found on extension marketplace download page It "Extension SSDT" { $version = Get-VSExtensionVersion -packageName "SSDT" $version | Should -Not -BeNullOrEmpty ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/MSYS2.Tests.ps1
PowerShell
mit
12,693
main
1,839
BeforeAll { $msys2Dir = "C:\msys64\usr\bin" $originalPath = $env:PATH } Describe "MSYS2 packages" -Skip:(Test-IsWin11-Arm64) { BeforeEach { $env:PATH = "$msys2Dir;$env:PATH" } It "msys2Dir exists" { $msys2Dir | Should -Exist } $TestCases = @( @{ ToolName = "bash.ex...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/PipxPackages.Tests.ps1
PowerShell
mit
12,693
main
254
Describe "PipxPackages" { $pipxToolset = (Get-ToolsetContent).pipx $testCases = $pipxToolset | ForEach-Object { @{package = $_.package; cmd = $_.cmd} } It "<package>" -TestCases $testCases { "$cmd" | Should -ReturnZeroExitCode } }
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Android.Tests.ps1
PowerShell
mit
12,693
main
2,430
Describe "Android SDK" -Skip:(Test-IsArm64) { $androidToolset = (Get-ToolsetContent).android $androidInstalledPackages = Get-AndroidInstalledPackages $platformList = Get-AndroidPlatformPackages -minVersion $androidToolset.platform_min_version $platformTestCases = $platformList | ForEach-Object { ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/WinAppDriver.Tests.ps1
PowerShell
mit
12,693
main
426
Describe "WinAppDriver" { It "WinAppDriver directory exists" { Test-Path -Path "${env:ProgramFiles(x86)}\Windows Application Driver" | Should -BeTrue } } Describe "Developer Mode" { It "Developer Mode is enabled" { $path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock"; Get-ItemProp...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Rust.Tests.ps1
PowerShell
mit
12,693
main
1,845
Describe "Rust" { BeforeAll { $env:RUSTUP_HOME = "C:\Users\Default\.rustup" $env:CARGO_HOME = "C:\Users\Default\.cargo" $env:Path += ";$env:CARGO_HOME\bin" } if (Test-IsWin25-X64) { $rustTools = @( @{ToolName = "rustup"; binPath = "C:\Users\Default\.cargo\bin\rus...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/ChocoPackages.Tests.ps1
PowerShell
mit
12,693
main
2,606
Describe "7-Zip" { It "7z" { "7z" | Should -ReturnZeroExitCode } } Describe "Aria2" { It "Aria2" { "aria2c --version" | Should -ReturnZeroExitCode } } Describe "AzCopy" { It "AzCopy" { "azcopy --version" | Should -ReturnZeroExitCode } } Describe "Bicep" { It "Bicep...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Docker.Tests.ps1
PowerShell
mit
12,693
main
1,026
Describe "Docker" -Skip:(Test-IsWin11-Arm64) { It "docker is installed" { "docker --version" | Should -ReturnZeroExitCode } It "docker service is up" { "docker images" | Should -ReturnZeroExitCode } It "docker symlink" { "C:\Windows\SysWOW64\docker.exe ps" | Should -ReturnZ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Vsix.Tests.ps1
PowerShell
mit
12,693
main
686
Describe "Vsix" { $toolset = Get-ToolsetContent $requiredVsixPackages = $toolset.visualStudio.vsix $allPackages = (Get-VisualStudioInstance).Packages $testCases = $requiredVsixPackages | ForEach-Object { $vsixPackage = Get-VsixInfoFromMarketplace $_ @{ VsixName = $vsixPac...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/DotnetSDK.Tests.ps1
PowerShell
mit
12,693
main
1,176
$dotnetVersions = (Get-ToolsetContent).dotnet.versions $dotnetTools = (Get-ToolsetContent).dotnet.tools Describe "Dotnet SDK and tools" { Context "Default" { It "Default Dotnet SDK is available" { "dotnet --version" | Should -ReturnZeroExitCode } } foreach ($version in $dotnet...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Apache.Tests.ps1
PowerShell
mit
12,693
main
757
Describe "Apache" { Context "Path" { It "Apache" { $apachePath = Join-Path (Join-Path "C:\tools\" (Get-Item C:\tools\apache*).Name) "\bin\httpd" "$apachePath -V" | Should -ReturnZeroExitCode } } Context "Service" { $apacheService = Get-Service -Name Apache ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Nginx.Tests.ps1
PowerShell
mit
12,693
main
739
Describe "Nginx" { Context "Path" { It "Nginx" { $nginxPath = Join-Path (Join-Path "C:\tools\" (Get-Item C:\tools\nginx*).Name) "nginx" "$nginxPath -v" | Should -ReturnZeroExitCode } } Context "Service" { $nginxService = Get-Service -Name nginx $nginx...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/Wix.Tests.ps1
PowerShell
mit
12,693
main
839
Describe "Wix" -Skip:(Test-IsWin11-Arm64) { BeforeAll { $regKey = "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*" $installedApplications = Get-ItemProperty -Path $regKey $version = ($installedApplications | Where-Object { $_.BundleCachePath -imatch ".*\\WiX\d*\.exe$" } | ...
github
actions/runner-images
https://github.com/actions/runner-images
images/windows/scripts/tests/VisualStudio.Tests.ps1
PowerShell
mit
12,693
main
1,531
Describe "Visual Studio" { Context "Basic" { It "Catalog.json" { $instanceFolder = Get-Item "C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\*" | Select-Object -First 1 Join-Path $instanceFolder.FullName "catalog.json" | Should -Exist } It "Devenv.exe" { ...