Skip to content

Commit 17b2253

Browse files
Fix workflow.
1 parent f6634a8 commit 17b2253

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

44
name: .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

0 commit comments

Comments
 (0)