mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 10:28:00 +08:00
[Windows] Implement new directories hierarchy (#8616)
This commit is contained in:
committed by
GitHub
parent
84a7deae24
commit
d1f2c9a3be
16
images/windows/scripts/tests/PHP.Tests.ps1
Normal file
16
images/windows/scripts/tests/PHP.Tests.ps1
Normal file
@@ -0,0 +1,16 @@
|
||||
Describe "PHP" {
|
||||
It "Check PHP version" {
|
||||
$phpMajorMinor = (Get-ToolsetContent).php.version
|
||||
$phpInstalledVersion = php --version | Select-String -Pattern "PHP $phpMajorMinor"
|
||||
$phpInstalledVersion | Should -BeLike "*${phpMajorMinor}*"
|
||||
}
|
||||
|
||||
It "Check Composer in the PATH" {
|
||||
"composer --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "PHP Environment variables is set." {
|
||||
${env:PHPROOT} | Should -Not -BeNullOrEmpty
|
||||
${env:PHPROOT} | Should -Exist
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user