-
Notifications
You must be signed in to change notification settings - Fork 20
51 lines (43 loc) · 1.36 KB
/
SeleniumProjectTests.yaml
File metadata and controls
51 lines (43 loc) · 1.36 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
45
46
47
48
49
50
name: Selenium project tests
on:
workflow_dispatch:
inputs:
runner:
description: "Select the runner"
required: false
type: choice
options:
- windows-latest
- ubuntu-latest
default: windows-latest
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ inputs.runner || 'windows-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: Restore dependencies
run: dotnet restore
- name: Build
working-directory: ./Behavioral.Automation.Selenium/Behavioral.Automation.DemoScenarios
run: dotnet build -c Release --no-restore
- name: Test
working-directory: ./Behavioral.Automation.Selenium/Behavioral.Automation.DemoScenarios
run: dotnet test -c Release --no-build --verbosity normal