diff --git a/impact-testing.yml b/impact-testing.yml index 6c4a20186..52eaba4c8 100644 --- a/impact-testing.yml +++ b/impact-testing.yml @@ -34,17 +34,22 @@ stages: git status $targetBranch = $(System.PullRequest.TargetBranch) - $gitChanges = git diff --name-only $targetBranch HEAD + $gitChanges = git diff --name-only HEAD..$targetBranch $unitTestsChanged = $false $integrationTestsChanged = $false foreach ($file in $gitChanges) { + # both need to run if ($file -like 'GsaGH/*') { $unitTestsChanged = $true + $integrationTestsChanged = $true } if ($file -like 'IntegrationTests/*') { $integrationTestsChanged = $true } + if ($file -like 'GsaGHTests/*') { + $unitTestsChanged = $true + } } Write-Output "Setting pipeline variables based on changes detected..."