-
-
Notifications
You must be signed in to change notification settings - Fork 171
52 lines (39 loc) · 1.54 KB
/
dotnet-desktop.yml
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 Core Desktop
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
configuration: [Debug]
runs-on: windows-2019 # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
env:
Solution_Name: TeslaLogger.sln # Replace with your solution name, i.e. MyWpfApp.sln.
Test_Project_Path: UnitTestsTeslalogger\UnitTestsTeslalogger.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: Setup Nuget
uses: Nuget/[email protected]
- name: Restore nuget packages
run: nuget restore TeslaLogger.sln
- name: Build solution
run: msbuild TeslaLogger.sln -t:rebuild -property:Configuration=Debug
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet vstest /Tests:UnitTestsGeocode /Logger:trx UnitTestsTeslalogger\bin\Debug\UnitTestsTeslalogger.dll
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: always()
with:
files: |
**/TestResults/*.trx