File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments