Skip to content

Commit df9b8ad

Browse files
Copilothishamco
authored andcommitted
fix: run explicit test projects in CI
1 parent 419ab05 commit df9b8ad

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,18 @@ jobs:
3434
- name: Install Playwright browsers
3535
shell: pwsh
3636
run: |
37-
$playwrightScript = Get-ChildItem "test/OrchardCoreContrib.Testing.UI.Tests/bin/Release/*/playwright.ps1" |
38-
Select-Object -First 1 -ExpandProperty FullName
37+
$playwrightScripts = Get-ChildItem "test/OrchardCoreContrib.Testing.UI.Tests/bin/Release/*/playwright.ps1" |
38+
Select-Object -ExpandProperty FullName
3939
40-
if ([string]::IsNullOrWhiteSpace($playwrightScript)) {
41-
throw "Unable to find playwright.ps1 in the built UI test output."
40+
if ($null -eq $playwrightScripts -or $playwrightScripts.Count -eq 0) {
41+
throw "Unable to find any playwright.ps1 script in the built UI test output."
4242
}
4343
44-
& $playwrightScript install
44+
foreach ($playwrightScript in $playwrightScripts) {
45+
& $playwrightScript install
46+
}
4547
4648
- name: Test
47-
run: dotnet test --configuration Release --no-restore --verbosity normal
49+
run: |
50+
dotnet test test/OrchardCoreContrib.Testing.Tests/OrchardCoreContrib.Testing.Tests.csproj --configuration Release --no-build --verbosity normal
51+
dotnet test test/OrchardCoreContrib.Testing.UI.Tests/OrchardCoreContrib.Testing.UI.Tests.csproj --configuration Release --no-build --verbosity normal

0 commit comments

Comments
 (0)