mirror of
https://github.com/actions/runner-images.git
synced 2026-01-06 18:19:54 +08:00
[Ubuntu] fix pester tests to include ubuntu22 back (#9775)
This commit is contained in:
@@ -106,7 +106,7 @@ Describe "Docker images" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Docker-compose v1" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "Docker-compose v1" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
It "docker-compose" {
|
It "docker-compose" {
|
||||||
"docker-compose --version"| Should -ReturnZeroExitCode
|
"docker-compose --version"| Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
@@ -118,7 +118,7 @@ Describe "Ansible" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Bazel" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "Bazel" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
It "<ToolName>" -TestCases @(
|
It "<ToolName>" -TestCases @(
|
||||||
@{ ToolName = "bazel" }
|
@{ ToolName = "bazel" }
|
||||||
@{ ToolName = "bazelisk" }
|
@{ ToolName = "bazelisk" }
|
||||||
@@ -183,25 +183,25 @@ Describe "Mono" -Skip:(Test-IsUbuntu24) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "MSSQLCommandLineTools" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "MSSQLCommandLineTools" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
It "sqlcmd" {
|
It "sqlcmd" {
|
||||||
"sqlcmd -?" | Should -ReturnZeroExitCode
|
"sqlcmd -?" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "SqlPackage" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "SqlPackage" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
It "sqlpackage" {
|
It "sqlpackage" {
|
||||||
"sqlpackage /version" | Should -ReturnZeroExitCode
|
"sqlpackage /version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "R" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "R" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
It "r" {
|
It "r" {
|
||||||
"R --version" | Should -ReturnZeroExitCode
|
"R --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Sbt" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "Sbt" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
It "sbt" {
|
It "sbt" {
|
||||||
"sbt --version" | Should -ReturnZeroExitCode
|
"sbt --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
@@ -214,7 +214,7 @@ Describe "Selenium" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Terraform" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "Terraform" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
It "terraform" {
|
It "terraform" {
|
||||||
"terraform --version" | Should -ReturnZeroExitCode
|
"terraform --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
@@ -252,7 +252,7 @@ Describe "Git-lfs" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Heroku" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "Heroku" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
It "heroku" {
|
It "heroku" {
|
||||||
"heroku --version" | Should -ReturnZeroExitCode
|
"heroku --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
@@ -298,7 +298,7 @@ Describe "Kubernetes tools" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Leiningen" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "Leiningen" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
It "leiningen" {
|
It "leiningen" {
|
||||||
"lein --version" | Should -ReturnZeroExitCode
|
"lein --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
@@ -310,7 +310,7 @@ Describe "Conda" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Packer" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "Packer" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
It "packer" {
|
It "packer" {
|
||||||
"packer --version" | Should -ReturnZeroExitCode
|
"packer --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
@@ -329,7 +329,7 @@ Describe "Phantomjs" -Skip:(-not (Test-IsUbuntu20)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Containers" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "Containers" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
$testCases = @("podman", "buildah", "skopeo") | ForEach-Object { @{ContainerCommand = $_} }
|
$testCases = @("podman", "buildah", "skopeo") | ForEach-Object { @{ContainerCommand = $_} }
|
||||||
|
|
||||||
It "<ContainerCommand>" -TestCases $testCases {
|
It "<ContainerCommand>" -TestCases $testCases {
|
||||||
@@ -345,7 +345,7 @@ Describe "Containers" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu2
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "nvm" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "nvm" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
It "nvm" {
|
It "nvm" {
|
||||||
"source /etc/skel/.nvm/nvm.sh && nvm --version" | Should -ReturnZeroExitCode
|
"source /etc/skel/.nvm/nvm.sh && nvm --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
@@ -381,7 +381,7 @@ Describe "yq" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Kotlin" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu20))) {
|
Describe "Kotlin" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
||||||
It "kapt" {
|
It "kapt" {
|
||||||
"kapt -version" | Should -ReturnZeroExitCode
|
"kapt -version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user