mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
* Add Pester tests * Fix incorrect merging * Remove swift test from installing script * Minor fix * Remove Haskell tests from commons tests * Fix selenium test * Fix SVN test * Fix pipx tests * Debug * Fix pipx packages test * Skip pipx for 16.04
49 lines
1.1 KiB
PowerShell
49 lines
1.1 KiB
PowerShell
Describe "PHP" {
|
|
|
|
[array]$testCases = (Get-ToolsetContent).php.versions | ForEach-Object { @{phpVersion = $_} }
|
|
|
|
It "php <phpVersion>" -TestCases $testCases {
|
|
param (
|
|
[string] $phpVersion
|
|
)
|
|
|
|
"php$phpVersion --version" | Should -ReturnZeroExitCode
|
|
"php-config$phpVersion --version" | Should -ReturnZeroExitCode
|
|
"phpize$phpVersion --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "PHPUnit" {
|
|
"phpunit --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Composer" {
|
|
"composer --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Pear" {
|
|
"pear" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Pecl" {
|
|
"pecl" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "Swift" {
|
|
It "swift" {
|
|
"swift --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "swiftc" {
|
|
"swiftc --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "PipxPackages" -Skip:(Test-IsUbuntu16) {
|
|
[array]$testCases = (Get-ToolsetContent).pipx | ForEach-Object { @{cmd = $_.cmd} }
|
|
|
|
It "<package>" -TestCases $testCases {
|
|
"$cmd --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|