Skip to content

Commit f0e8684

Browse files
committed
GHA workflows update to enable cross platform execution
1 parent 43d767f commit f0e8684

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

.github/workflows/PlaywrightProjectTests.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,36 @@ on:
1010
options:
1111
- ubuntu-latest
1212
- windows-latest
13-
default: ubunntu-latest
13+
default: ubuntu-latest
1414
pull_request:
1515

1616
jobs:
1717
PlaywrightProjectTests:
1818
runs-on: ${{ inputs.runner || 'ubuntu-latest' }}
1919
steps:
2020
- uses: actions/checkout@v4
21-
- name: Setup .NET Core SDK '8.0.x'
21+
22+
- name: Setup .NET
2223
uses: actions/setup-dotnet@v4
2324
with:
2425
dotnet-version: '8.0.x'
25-
- name: Run Blazor app
26+
27+
# Windows Runner
28+
- name: Run Blazor app (Windows)
29+
if: runner.os == 'Windows'
30+
run: |
31+
Start-Job -ScriptBlock { Start-Process -NoNewWindow -FilePath dotnet -ArgumentList "run" -WorkingDirectory ./src/BlazorApp }
32+
Start-Sleep -Seconds 20
33+
34+
# Ubuntu Runner
35+
- name: Run Blazor app (Ubuntu)
36+
if: runner.os == 'Linux'
2637
run: |
2738
cd ./src/BlazorApp
2839
dotnet run &
40+
2941
- name: Test Blazor app
3042
run: |
3143
cd ./Behavioral.Automation.Playwright/UITests
3244
dotnet test
45+

.github/workflows/SeleniumProjectTests.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ jobs:
2828
uses: actions/setup-dotnet@v4
2929
with:
3030
dotnet-version: '8.0.x'
31+
32+
# Windows Runner
33+
- name: Run Blazor app (Windows)
34+
if: runner.os == 'Windows'
35+
run: |
36+
Start-Job -ScriptBlock { Start-Process -NoNewWindow -FilePath dotnet -ArgumentList "run" -WorkingDirectory ./src/BlazorApp }
37+
Start-Sleep -Seconds 20
38+
39+
# Ubuntu Runner
40+
- name: Run Blazor app (Ubuntu)
41+
if: runner.os == 'Linux'
42+
run: |
43+
cd ./src/BlazorApp
44+
dotnet run &
45+
3146
- name: Restore dependencies
3247
run: dotnet restore
3348
- name: Build
@@ -36,3 +51,4 @@ jobs:
3651
- name: Test
3752
working-directory: ./Behavioral.Automation.Selenium/Behavioral.Automation.DemoScenarios
3853
run: dotnet test -c Release --no-build --verbosity normal
54+

0 commit comments

Comments
 (0)