mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
48 lines
1.2 KiB
PowerShell
48 lines
1.2 KiB
PowerShell
Describe "PHP" {
|
|
$testCases = (Get-ToolsetContent).php.versions | ForEach-Object { @{PhpVersion = $_} }
|
|
|
|
It "php <phpVersion>" -TestCases $testCases {
|
|
"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
|
|
}
|
|
|
|
It "libsourcekitd" {
|
|
"/usr/local/lib/libsourcekitdInProc.so" | Should -Exist
|
|
}
|
|
}
|
|
|
|
Describe "PipxPackages" {
|
|
$testCases = (Get-ToolsetContent).pipx | ForEach-Object { @{package=$_.package; cmd = $_.cmd} }
|
|
|
|
It "<package>" -TestCases $testCases {
|
|
"$cmd --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|