-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (32 loc) · 1.14 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
name: PhotoScope CI Pipeline
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest
env:
Solution_Name: Source/PhotoScopeConsole/PhotoScopeConsole.sln
Test_Project_Path: your-test-project-path
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: Setup Nuget
uses: NuGet/[email protected]
- name: Restore Nuget packages
run: nuget restore $env:Solution_Name
- name: Build the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
# - name: Install NUnit.ConsoleRunner
# run: nuget install NUnit.ConsoleRunner -Version 3.13.0 -DirectDownload -OutputDirectory .
# - name: Run UnitTests
# run: ./NUnit.ConsoleRunner.3.13.0/tools/nunit3-console.exe Source/PhotoScopeConsole/tst/PhotoScope.BusinessLogic.Tests/bin/Debug/PhotoScope.BusinessLogic.Tests.dll