@@ -7,9 +7,9 @@ name: MSBuild
77
88on :
99 push :
10- branches : [ "master" ]
10+ branches : ["master"]
1111 pull_request :
12- branches : [ "master" ]
12+ branches : ["master"]
1313
1414env :
1515 # Path to the solution file relative to the root of the project.
@@ -28,17 +28,21 @@ jobs:
2828 runs-on : windows-latest
2929
3030 steps :
31- - uses : actions/checkout@v4
31+ - uses : actions/checkout@v4
3232
33- - name : Add MSBuild to PATH
34- 33+ - name : Add MSBuild to PATH
34+ 3535
36- - name : Restore NuGet packages
37- working-directory : ${{env.GITHUB_WORKSPACE}}
38- run : nuget restore ${{env.SOLUTION_FILE_PATH}}
36+ - name : Restore NuGet packages
37+ working-directory : ${{env.GITHUB_WORKSPACE}}
38+ run : nuget restore ${{env.SOLUTION_FILE_PATH}}
3939
40- - name : Build
41- working-directory : ${{env.GITHUB_WORKSPACE}}
42- # Add additional options to the MSBuild command line here (like platform or verbosity level).
43- # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
44- run : msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
40+ - name : Build
41+ working-directory : ${{env.GITHUB_WORKSPACE}}
42+ # Add additional options to the MSBuild command line here (like platform or verbosity level).
43+ # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
44+ run : msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
45+
46+ - name : Run Tests
47+ working-directory : ${{env.GITHUB_WORKSPACE}}
48+ run : dotnet test ${{env.SOLUTION_FILE_PATH}} --configuration ${{env.BUILD_CONFIGURATION}}
0 commit comments