mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
24 lines
583 B
PowerShell
24 lines
583 B
PowerShell
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
|
|
|
$os = Get-OSVersion
|
|
|
|
Describe "Apache" -Skip:($os.IsVentura -or $os.IsSonoma) {
|
|
It "Apache CLI" {
|
|
"httpd -v" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Apache Service" {
|
|
brew services list | Out-String | Should -Match "httpd\s+(stopped|none)"
|
|
}
|
|
}
|
|
|
|
Describe "Nginx" -Skip:($os.IsVentura -or $os.IsSonoma) {
|
|
It "Nginx CLI" {
|
|
"nginx -v" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Nginx Service" {
|
|
brew services list | Out-String | Should -Match "nginx\s+(stopped|none)"
|
|
}
|
|
}
|