mirror of
https://github.com/actions/runner-images.git
synced 2026-01-06 18:19:54 +08:00
[macOS] Add PHP to the toolset (#4544)
This commit is contained in:
@@ -6,12 +6,15 @@ Describe "PHP" -Skip:($os.IsMonterey) {
|
||||
Get-WhichTool "php" | Should -Not -BeLike "/usr/bin/php*"
|
||||
}
|
||||
It "PHP version" {
|
||||
"php --version" | Should -ReturnZeroExitCode
|
||||
$phpVersionToolset = Get-ToolsetValue 'php.version'
|
||||
$phpInstalledVersion = php --version | Out-String | Select-String "${phpVersionToolset}"
|
||||
$phpInstalledVersion | Should -BeLike "PHP ${phpVersionToolset}*"
|
||||
}
|
||||
}
|
||||
|
||||
Context "Composer" {
|
||||
It "Composer" {
|
||||
"composer --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user