-
Notifications
You must be signed in to change notification settings - Fork 20
45 lines (38 loc) · 1.07 KB
/
PlaywrightProjectTests.yml
File metadata and controls
45 lines (38 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Playwright project tests
on:
workflow_dispatch:
inputs:
runner:
description: "Select the runner"
required: false
type: choice
options:
- ubuntu-latest
- windows-latest
default: ubuntu-latest
pull_request:
jobs:
PlaywrightProjectTests:
runs-on: ${{ inputs.runner || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
# Windows Runner
- name: Run Blazor app (Windows)
if: runner.os == 'Windows'
run: |
Start-Job -ScriptBlock { Start-Process -NoNewWindow -FilePath dotnet -ArgumentList "run" -WorkingDirectory ./src/BlazorApp }
Start-Sleep -Seconds 20
# Ubuntu Runner
- name: Run Blazor app (Ubuntu)
if: runner.os == 'Linux'
run: |
cd ./src/BlazorApp
dotnet run &
- name: Test Blazor app
run: |
cd ./Behavioral.Automation.Playwright/UITests
dotnet test