-
Notifications
You must be signed in to change notification settings - Fork 9
60 lines (55 loc) · 1.47 KB
/
main.yml
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
51
52
53
54
55
56
57
58
59
60
name: Main
on:
push:
branches:
- "main"
- "release/**"
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
env:
SLN: "src/Riganti.Selenium.WithoutCoordinator.sln"
steps:
- uses: actions/checkout@v4
- name: Set up
uses: ./.github/setup
with:
sln: ${{ env.SLN }}
- run: dotnet build ${{ env.SLN }}
ui-tests:
name: UI tests
runs-on: ${{ matrix.os }}
timeout-minutes: 50
strategy:
fail-fast: false # don't kill tests when one environment fails
matrix:
# specify only one config, all other configurations are included explicitly
browser: [firefox, chrome]
os: [ubuntu-latest]
env:
SLN: "src/Riganti.Selenium.WithoutCoordinator.sln"
steps:
- uses: actions/checkout@v4
- name: Set up
uses: ./.github/setup
with:
sln: ${{ env.SLN }}
- run: type firefox
- run: type geckodriver
- name: Run UI tests
uses: ./.github/uitest
with:
browser: ${{ matrix.browser }}
github-token: ${{ secrets.GITHUB_TOKEN }}
build-configuration: "${{ matrix.environment == 'Production' && 'Release' || 'Debug' }}"
runtime-environment: "${{ matrix.environment }}"