mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
* [macOS] Refactor Common.Helpers * Update readme file * Remove unnecessary double quotes --------- Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
23 lines
739 B
PowerShell
23 lines
739 B
PowerShell
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
|
|
|
$os = Get-OSVersion
|
|
|
|
Describe "PHP" {
|
|
Context "PHP" -Skip:($os.IsVenturaArm64 -or $os.IsSonomaArm64) {
|
|
It "PHP Path" {
|
|
Get-ToolPath "php" | Should -Not -BeLike "/usr/bin/php*"
|
|
}
|
|
It "PHP version" {
|
|
$phpVersionToolset = (Get-ToolsetContent).php.version
|
|
$phpInstalledVersion = php --version | Out-String | Select-String "${phpVersionToolset}"
|
|
$phpInstalledVersion | Should -BeLike "PHP ${phpVersionToolset}*"
|
|
}
|
|
}
|
|
|
|
Context "Composer" -Skip:($os.IsVenturaArm64 -or $os.IsSonomaArm64) {
|
|
It "Composer" {
|
|
"composer --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
}
|