File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ name : main_build
2+
3+ on :
4+ pull_request :
5+ branches : [ main ]
6+
7+ env :
8+ SOLUTION_PATH : source/Diol
9+ TEST_PROJECT_PATH : tests/unit/Diol.Tests.Units/bin/Release/net48/Diol.Tests.Units.dll
10+
11+ jobs :
12+ build :
13+
14+ runs-on : windows-latest
15+
16+ steps :
17+ - uses : actions/checkout@v2
18+
19+ - name : Setup MSBuild
20+ uses : microsoft/setup-msbuild@v1
21+
22+ - name : Restore NuGet packages
23+ run : msbuild /t:restore ${{ env.SOLUTION_PATH }}
24+
25+ - name : Build
26+ run : msbuild /p:Configuration=Release /p:Platform="Any CPU" ${{ env.SOLUTION_PATH }}/Diol.sln
27+
28+ - name : Run Unit Tests
29+ run : |
30+ "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" ${{ env.TEST_PROJECT_PATH }}
You can’t perform that action at this time.
0 commit comments