-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 1.03 KB
/
build.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
name: Build and test
on:
push:
branches:
- dev
pull_request:
branches:
- dev
workflow_dispatch:
jobs:
buildTest:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.6
- name: Install MSBuild
uses: microsoft/setup-msbuild@v2
- name: Install NuGet
uses: nuget/setup-nuget@v2
- name: Restore dependencies
run: nuget restore Software\E_Libra\E_Libra.sln
- name: Build solution
run: msbuild.exe Software\E_Libra\E_Libra.sln /p:platform="Any CPU" /p:configuration="Debug"
- name: Build Unit Test project
run: dotnet build Software\E_Libra\UnitTesting\UnitTesting.csproj --configuration Debug
- name: List test directories
run: tree Software\E_Libra\UnitTesting
- name: List Visual Studio directories
run: tree C:\Program Files\Microsoft Visual Studio\2022\Enterprise
- name: Run tests
run: dotnet test Software\E_Libra\E_Libra.sln --no-build --verbosity normal