-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.52 KB
/
Copy pathpr.yml
File metadata and controls
53 lines (43 loc) · 1.52 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
51
52
53
name: Orchard Core Contrib Testing - Pull Request
on:
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v6
with:
submodules: true
token: ${{ secrets.OCC_TOKEN }}
- name: Setup .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.*
10.0.*
- name: Install Dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Install Playwright browsers
shell: pwsh
run: |
$playwrightScripts = Get-ChildItem "test/OrchardCoreContrib.Testing.UI.Tests/bin/Release/*/playwright.ps1" |
Select-Object -ExpandProperty FullName
if ($null -eq $playwrightScripts -or $playwrightScripts.Count -eq 0) {
throw "Unable to find any playwright.ps1 script in the built UI test output."
}
foreach ($playwrightScript in $playwrightScripts) {
& $playwrightScript install
}
- name: Test
run: |
dotnet test test/OrchardCoreContrib.Testing.Tests/OrchardCoreContrib.Testing.Tests.csproj --configuration Release --no-build --verbosity normal
dotnet test test/OrchardCoreContrib.Testing.UI.Tests/OrchardCoreContrib.Testing.UI.Tests.csproj --configuration Release --no-build --verbosity normal