-
-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (42 loc) · 1.37 KB
/
dotnet-desktop.yml
File metadata and controls
52 lines (42 loc) · 1.37 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
name: .NET Desktop
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
Build:
runs-on: windows-latest
strategy:
matrix:
configuration: [
Release
]
solution: [
Zetian.slnx,
]
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: 11.0.x
dotnet-quality: preview
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2.0.0
# Execute all unit tests in the solution
- name: Execute Unit Tests
run: dotnet test --solution ${{ matrix.solution }} -c ${{ matrix.configuration }} --max-parallel-test-modules 1 -p:NoWarn="CS0067%3BCS0108%3BCS0109%3BCS0114%3BCS0169%3BCS0414%3BCS0649%3BCA1416%3BNU5104%3BNETSDK1138%3BSYSLIB0003" -- -parallel none
env:
NUGET_CONFIG_PATH: ./NuGet.Config
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the Zetian
run: msbuild ${{ matrix.solution }} /t:Restore /p:Configuration=$env:Configuration
env:
NUGET_CONFIG_PATH: ./NuGet.Config
Configuration: ${{ matrix.configuration }}