Skip to content

Commit 2c10bcf

Browse files
committed
Use if .. else
1 parent ff3a5ad commit 2c10bcf

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ jobs:
2929
- name: Install Playwright browsers & dependencies
3030
run: pwsh test/OrchardCoreContrib.Testing.UI.Tests/bin/Release/net8.0/playwright.ps1 install --with-deps
3131
- name: Test
32-
if: startsWith(matrix.os, 'ubuntu')
33-
run: xvfb-run dotnet test test/OrchardCoreContrib.Testing.UI.Tests -c Release --no-restore --verbosity normal
34-
- name: Test
35-
if: "!startsWith(matrix.os, 'ubuntu')"
36-
run: dotnet test test/OrchardCoreContrib.Testing.UI.Tests -c Release --no-restore --verbosity normal
32+
run: |
33+
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
34+
xvfb-run dotnet test test/OrchardCoreContrib.Testing.UI.Tests -c Release --no-restore --verbosity normal
35+
else
36+
dotnet test test/OrchardCoreContrib.Testing.UI.Tests -c Release --no-restore --verbosity normal
37+
fi

0 commit comments

Comments
 (0)