Files
runner-images/images/macos/scripts/tests/Git.Tests.ps1
2024-05-20 23:37:11 +02:00

16 lines
458 B
PowerShell

Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
$os = Get-OSVersion
Describe "Git" {
It "git is installed" {
"git --version" | Should -ReturnZeroExitCode
}
It "git lfs is installed" -Skip:($os.IsBigSur) {
"git lfs version" | Should -ReturnZeroExitCode
}
It "GIT_CLONE_PROTECTION_ACTIVE environment variable should be equal false" {
$env:GIT_CLONE_PROTECTION_ACTIVE | Should -BeExactly false
}
}