mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Windows] Add Windows 2025 code (#11037)
This commit is contained in:
@@ -11,7 +11,7 @@ Describe "Azure DevOps CLI" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Aliyun CLI" {
|
||||
Describe "Aliyun CLI" -Skip:(Test-IsWin25) {
|
||||
It "Aliyun CLI" {
|
||||
"aliyun version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
@@ -39,7 +39,7 @@ Describe "GitHub CLI" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "CloudFoundry CLI" -Skip:(Test-IsWin22) {
|
||||
Describe "CloudFoundry CLI" -Skip:(-not (Test-IsWin19)) {
|
||||
It "cf is located in C:\cf-cli" {
|
||||
"C:\cf-cli\cf.exe" | Should -Exist
|
||||
}
|
||||
|
||||
@@ -22,13 +22,13 @@ Describe "Bicep" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "GitVersion" -Skip:(Test-IsWin22) {
|
||||
Describe "GitVersion" -Skip:(-not (Test-IsWin19)) {
|
||||
It "gitversion is installed" {
|
||||
"gitversion /version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "InnoSetup" {
|
||||
Describe "InnoSetup" -Skip:(Test-IsWin25) {
|
||||
It "InnoSetup" {
|
||||
(Get-Command -Name iscc).CommandType | Should -BeExactly "Application"
|
||||
}
|
||||
@@ -64,7 +64,7 @@ Describe "Pulumi" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Svn" {
|
||||
Describe "Svn" -Skip:(Test-IsWin25) {
|
||||
It "svn" {
|
||||
"svn --version --quiet" | Should -ReturnZeroExitCode
|
||||
}
|
||||
@@ -102,4 +102,4 @@ Describe "ImageMagick" {
|
||||
It "ImageMagick" {
|
||||
"magick -version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
Describe "MongoDB" {
|
||||
Context "Version" {
|
||||
It "<ToolName>" -TestCases @(
|
||||
@{ ToolName = "mongo" }
|
||||
if (Test-IsWin25) {
|
||||
@{ ToolName = "mongos" }
|
||||
} else {
|
||||
@{ ToolName = "mongo" }
|
||||
}
|
||||
@{ ToolName = "mongod" }
|
||||
) {
|
||||
$toolsetVersion = (Get-ToolsetContent).mongodb.version
|
||||
@@ -25,6 +29,10 @@ Describe "MongoDB" {
|
||||
$StartType | Should -Be "Disabled"
|
||||
}
|
||||
}
|
||||
|
||||
Context "Shell" -Skip:(-not (Test-IsWin19) -or -not (Test-IsWin22)) {
|
||||
"mongosh --version" | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
}
|
||||
|
||||
Describe "PostgreSQL" {
|
||||
|
||||
@@ -25,7 +25,7 @@ Describe "DockerWinCred" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "DockerImages" {
|
||||
Describe "DockerImages" -Skip:(Test-IsWin25) {
|
||||
Context "docker images" {
|
||||
$testCases = (Get-ToolsetContent).docker.images | ForEach-Object { @{ ImageName = $_ } }
|
||||
|
||||
|
||||
@@ -24,12 +24,18 @@ Describe "Haskell" {
|
||||
@{envVar = "GHCUP_MSYS2"}
|
||||
)
|
||||
|
||||
If (Test-IsWin25) {
|
||||
$numberOfVersions = 1
|
||||
} else {
|
||||
$numberOfVersions = 3
|
||||
}
|
||||
|
||||
It "<envVar> environment variable exists" -TestCases $ghcupEnvExists {
|
||||
Test-Path env:\$envVar
|
||||
}
|
||||
|
||||
It "Accurate 3 versions of GHC are installed" -TestCases @{ghcCount = $ghcCount} {
|
||||
$ghcCount | Should -BeExactly 3
|
||||
It "Accurate $numberOfVersions versions of GHC are installed" -TestCases @{ghcCount = $ghcCount; numberOfVersions = $numberOfVersions} {
|
||||
$ghcCount | Should -BeExactly $numberOfVersions
|
||||
}
|
||||
|
||||
It "GHC <ghcVersion> is installed" -TestCases $ghcTestCases {
|
||||
|
||||
@@ -5,15 +5,23 @@ Describe "Rust" {
|
||||
$env:Path += ";$env:CARGO_HOME\bin"
|
||||
}
|
||||
|
||||
$rustTools = @(
|
||||
@{ToolName = "rustup"; binPath = "C:\Users\Default\.cargo\bin\rustup.exe"}
|
||||
@{ToolName = "rustc"; binPath = "C:\Users\Default\.cargo\bin\rustc.exe"}
|
||||
@{ToolName = "bindgen.exe"; binPath = "C:\Users\Default\.cargo\bin\bindgen.exe"}
|
||||
@{ToolName = "cbindgen.exe"; binPath = "C:\Users\Default\.cargo\bin\cbindgen.exe"}
|
||||
@{ToolName = "cargo"; binPath = "C:\Users\Default\.cargo\bin\cargo.exe"}
|
||||
@{ToolName = "cargo audit"; binPath = "C:\Users\Default\.cargo\bin\cargo-audit.exe"}
|
||||
@{ToolName = "cargo outdated"; binPath = "C:\Users\Default\.cargo\bin\cargo-outdated.exe"}
|
||||
)
|
||||
if (Test-IsWin25) {
|
||||
$rustTools = @(
|
||||
@{ToolName = "rustup"; binPath = "C:\Users\Default\.cargo\bin\rustup.exe"}
|
||||
@{ToolName = "rustc"; binPath = "C:\Users\Default\.cargo\bin\rustc.exe"}
|
||||
@{ToolName = "cargo"; binPath = "C:\Users\Default\.cargo\bin\cargo.exe"}
|
||||
)
|
||||
} else {
|
||||
$rustTools = @(
|
||||
@{ToolName = "rustup"; binPath = "C:\Users\Default\.cargo\bin\rustup.exe"}
|
||||
@{ToolName = "rustc"; binPath = "C:\Users\Default\.cargo\bin\rustc.exe"}
|
||||
@{ToolName = "bindgen.exe"; binPath = "C:\Users\Default\.cargo\bin\bindgen.exe"}
|
||||
@{ToolName = "cbindgen.exe"; binPath = "C:\Users\Default\.cargo\bin\cbindgen.exe"}
|
||||
@{ToolName = "cargo"; binPath = "C:\Users\Default\.cargo\bin\cargo.exe"}
|
||||
@{ToolName = "cargo audit"; binPath = "C:\Users\Default\.cargo\bin\cargo-audit.exe"}
|
||||
@{ToolName = "cargo outdated"; binPath = "C:\Users\Default\.cargo\bin\cargo-outdated.exe"}
|
||||
)
|
||||
}
|
||||
|
||||
$rustEnvNotExists = @(
|
||||
@{envVar = "RUSTUP_HOME"}
|
||||
|
||||
@@ -55,19 +55,19 @@ Describe "DACFx" {
|
||||
"${sqlPackagePath}" | Should -Exist
|
||||
}
|
||||
|
||||
It "SqlLocalDB" -Skip:(Test-IsWin22) {
|
||||
It "SqlLocalDB" -Skip:(-not (Test-IsWin19)) {
|
||||
$sqlLocalDBPath = 'C:\Program Files\Microsoft SQL Server\130\Tools\Binn\SqlLocalDB.exe'
|
||||
"${sqlLocalDBPath}" | Should -Exist
|
||||
}
|
||||
}
|
||||
|
||||
Describe "DotnetTLS" -Skip:(Test-IsWin22) {
|
||||
Describe "DotnetTLS" -Skip:(-not (Test-IsWin19)) {
|
||||
It "Tls 1.2 is enabled" {
|
||||
[Net.ServicePointManager]::SecurityProtocol -band "Tls12" | Should -Be Tls12
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Mercurial" {
|
||||
Describe "Mercurial" -Skip:(Test-IsWin25) {
|
||||
It "Mercurial" {
|
||||
"hg --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
@@ -101,7 +101,7 @@ Describe "Mingw64" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "GoogleCloudCLI" -Skip:(Test-IsWin22) {
|
||||
Describe "GoogleCloudCLI" -Skip:(-not (Test-IsWin19)) {
|
||||
It "<ToolName>" -TestCases @(
|
||||
@{ ToolName = "bq" }
|
||||
@{ ToolName = "gcloud" }
|
||||
@@ -117,7 +117,7 @@ Describe "NET48" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "NSIS" {
|
||||
Describe "NSIS" -Skip:(Test-IsWin25) {
|
||||
It "NSIS" {
|
||||
"makensis /VERSION" | Should -ReturnZeroExitCode
|
||||
}
|
||||
@@ -175,7 +175,7 @@ Describe "Vcpkg" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "VCRedist" -Skip:(Test-IsWin22) {
|
||||
Describe "VCRedist" -Skip:(-not (Test-IsWin19)) {
|
||||
It "vcredist_2010_x64" {
|
||||
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1D8E6291-B0D5-35EC-8441-6616F567A0F7}" | Should -Exist
|
||||
"C:\Windows\System32\msvcr100.dll" | Should -Exist
|
||||
|
||||
@@ -25,20 +25,20 @@ Describe "Visual Studio" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Windows 10 SDK" {
|
||||
It "Verifies 17763 SDK is installed" -Skip:(Test-IsWin19) {
|
||||
Describe "Windows 10 SDK" -Skip:((Test-IsWin19) -or (Test-IsWin25)) {
|
||||
It "Verifies 17763 SDK is installed" {
|
||||
"${env:ProgramFiles(x86)}\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.17763.0\UAP.props" | Should -Exist
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Windows 11 SDK" {
|
||||
It "Verifies 22621 SDK is installed" -Skip:(Test-IsWin22) {
|
||||
Describe "Windows 11 SDK" -Skip:(-not (Test-IsWin19)) {
|
||||
It "Verifies 22621 SDK is installed" {
|
||||
"${env:ProgramFiles(x86)}\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.22621.0\UAP.props" | Should -Exist
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Windows 11 SDK" {
|
||||
It "Verifies 26100 SDK is installed" -Skip:(Test-IsWin19) {
|
||||
Describe "Windows 11 SDK" -Skip:(Test-IsWin19) {
|
||||
It "Verifies 26100 SDK is installed" {
|
||||
"${env:ProgramFiles(x86)}\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.26100.0\UAP.props" | Should -Exist
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Describe "WDK" {
|
||||
Describe "WDK" -Skip:(Test-IsWin25) {
|
||||
It "WDK exists" {
|
||||
$regKey = "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
|
||||
$installedApplications = Get-ItemProperty -Path $regKey
|
||||
|
||||
Reference in New Issue
Block a user