forked from PropertyTools/PropertyTools
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (34 loc) · 919 Bytes
/
Copy pathci.yml
File metadata and controls
42 lines (34 loc) · 919 Bytes
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
name: .NET Core Desktop
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
10.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
- name: Execute unit tests
run: dotnet test Source\PropertyTools.sln
- name: Restore the application
run: msbuild Source\PropertyTools.sln /t:Restore /p:Configuration=Release
- uses: actions/upload-artifact@v4
with:
name: nupkgs
path: Source/**/*.nupkg