-
Notifications
You must be signed in to change notification settings - Fork 24
61 lines (46 loc) · 1.71 KB
/
Copy pathtest.yml
File metadata and controls
61 lines (46 loc) · 1.71 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
54
55
56
57
58
59
60
61
name: Tests
# Runs the RomM.Tests unit suite, and (on direct pushes) also compiles the plugin so the
# pure-logic seams stay in sync. The test project links the plugin's pure-logic source files
# directly (no WPF/XAML project reference), so it builds/runs under `dotnet test` rather than the
# full msbuild flow used to package the extension.
on:
push:
pull_request:
permissions:
contents: read
concurrency:
group: test-${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
# Compile the plugin itself on pushes (PRs are already covered by pr-build.yml). Mirrors that
# workflow so seam refactors that touch the WPF/plugin project are verified here too.
build-plugin:
if: github.event_name == 'push'
runs-on: windows-2025-vs2026
steps:
- uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: |
dotnet restore
dotnet add package Microsoft.Net.Sdk.Compilers.Toolset --version 9.0.300
- name: Build with MSBuild
run: |
msbuild RomM.csproj /p:Configuration=Release /p:Platform="AnyCPU" /p:RestorePackages=false
test:
runs-on: windows-2025-vs2026
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore
run: dotnet restore RomM.Tests/RomM.Tests.csproj
- name: Test
run: dotnet test RomM.Tests/RomM.Tests.csproj --configuration Release --no-restore --logger "console;verbosity=normal"