Skip to content

Commit 635a3f0

Browse files
committed
Fix can't find tests project
1 parent 5f8f5a4 commit 635a3f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/actions/project-build/run-command-for-every-tests-project.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212

1313
$projectPath = $args[0]
1414
$projectName = Split-Path -Path $projectPath -Leaf
15-
$testsFolderPath = Join-Path -Path $projectPath -ChildPath "../tests"
15+
$testsFolderPath = Join-Path -Path $PSScriptRoot -ChildPath "../../../tests"
1616
$global:exitCode = 0
1717
$commandToExecute = $args[1]
1818
$allowNoTests = $args.Count -ge 3 -and $args[2] -eq "--allow-no-tests"
1919

20+
Write-Host "Looking for tests in: $testsFolderPath"
21+
2022
$testsFound = @(
2123
Get-ChildItem -Path $testsFolderPath -Directory -Recurse |
2224
Where-Object { $_.Name -match "^$projectName.*Tests$" }

0 commit comments

Comments
 (0)