-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (38 loc) · 1.27 KB
/
pr-validation.yml
File metadata and controls
49 lines (38 loc) · 1.27 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
name: PR Validation
on:
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pr-validation-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
APP_TEST_PROJECT: tests/PrompterOne.App.Tests/PrompterOne.App.Tests.csproj
CORE_TEST_PROJECT: tests/PrompterOne.Core.Tests/PrompterOne.Core.Tests.csproj
PLAYWRIGHT_CLI: tests/PrompterOne.App.UITests/bin/Debug/net10.0/.playwright/package/cli.js
SOLUTION_FILE: PrompterOne.slnx
UI_TEST_PROJECT: tests/PrompterOne.App.UITests/PrompterOne.App.UITests.csproj
jobs:
build_and_test:
name: Build And Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
- name: Build solution
run: dotnet build "$SOLUTION_FILE" -warnaserror
- name: Install Playwright browser
run: node "$PLAYWRIGHT_CLI" install chromium
- name: Test supporting suites
run: |
dotnet test "$CORE_TEST_PROJECT" --no-build
dotnet test "$APP_TEST_PROJECT" --no-build
- name: Test browser suite
run: dotnet test "$UI_TEST_PROJECT" --no-build