File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1- # This workflow will build a .NET project
1+ # This workflow will build and test a .NET project
22# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
33
44name : .NET
@@ -16,13 +16,24 @@ jobs:
1616
1717 steps :
1818 - uses : actions/checkout@v4
19+
1920 - name : Setup .NET
2021 uses : actions/setup-dotnet@v4
2122 with :
2223 dotnet-version : 8.0.x
24+
25+ - name : Navigate to project directory
26+ working-directory : CompareUsers # Replace with the relative path to your project directory
27+ run : pwd
28+
2329 - name : Restore dependencies
30+ working-directory : CompareUsers # Replace with the relative path to your project directory
2431 run : dotnet restore
32+
2533 - name : Build
26- run : dotnet build --no-restore
34+ working-directory : CompareUsers # Replace with the relative path to your project directory
35+ run : dotnet build --no-restore --configuration Release
36+
2737 - name : Test
38+ working-directory : CompareUsers # Replace with the relative path to your project directory
2839 run : dotnet test --no-build --verbosity normal
You can’t perform that action at this time.
0 commit comments