File tree Expand file tree Collapse file tree 2 files changed +32
-3
lines changed
Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 1010 options :
1111 - ubuntu-latest
1212 - windows-latest
13- default : ubunntu -latest
13+ default : ubuntu -latest
1414 pull_request :
1515
1616jobs :
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+
Original file line number Diff line number Diff line change 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
3651 - name : Test
3752 working-directory : ./Behavioral.Automation.Selenium/Behavioral.Automation.DemoScenarios
3853 run : dotnet test -c Release --no-build --verbosity normal
54+
You can’t perform that action at this time.
0 commit comments