mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
* Revert "[Ubuntu] Add new git environment variable (#9899)" This reverts commitee7edb4f80. * Revert "[Windows] Add new git environment variable (#9898)" This reverts commit5113d251a8. * Revert "[macOS] Add new git environment variable (#9900)" This reverts commit5c60b0c2af.
26 lines
754 B
PowerShell
26 lines
754 B
PowerShell
Describe "Git" {
|
|
$gitTools = 'bash', 'awk', 'git', 'git-lfs'
|
|
$gitTestCases = $gitTools | ForEach-Object {
|
|
@{
|
|
toolName = $_
|
|
source = [regex]::Escape("$env:ProgramFiles\Git")
|
|
}
|
|
}
|
|
|
|
It "<toolName> is installed" -TestCases $gitTestCases {
|
|
"$toolName --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "<toolName> is located in '<source>'" -TestCases $gitTestCases {
|
|
(Get-Command -Name $toolName).Source | Should -Match $source
|
|
}
|
|
|
|
It "Git core.symlinks=true option is enabled" {
|
|
git config core.symlinks | Should -BeExactly true
|
|
}
|
|
|
|
It "GCM_INTERACTIVE environment variable should be equal Never" {
|
|
$env:GCM_INTERACTIVE | Should -BeExactly Never
|
|
}
|
|
}
|