We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f8f5a4 commit 635a3f0Copy full SHA for 635a3f0
.github/actions/project-build/run-command-for-every-tests-project.ps1
@@ -12,11 +12,13 @@
12
13
$projectPath = $args[0]
14
$projectName = Split-Path -Path $projectPath -Leaf
15
-$testsFolderPath = Join-Path -Path $projectPath -ChildPath "../tests"
+$testsFolderPath = Join-Path -Path $PSScriptRoot -ChildPath "../../../tests"
16
$global:exitCode = 0
17
$commandToExecute = $args[1]
18
$allowNoTests = $args.Count -ge 3 -and $args[2] -eq "--allow-no-tests"
19
20
+Write-Host "Looking for tests in: $testsFolderPath"
21
+
22
$testsFound = @(
23
Get-ChildItem -Path $testsFolderPath -Directory -Recurse |
24
Where-Object { $_.Name -match "^$projectName.*Tests$" }
0 commit comments