Skip to content

Commit bc4c8e3

Browse files
specify solution path for build and test pipeline
1 parent a7015eb commit bc4c8e3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build-test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [ "main" ]
66
pull_request:
77
branches: [ "main" ]
8+
9+
env:
10+
SOLUTION_PATH: "./Mando/Mando.sln"
811

912
jobs:
1013
build-and-test:
@@ -20,10 +23,10 @@ jobs:
2023
dotnet-version: "9.0.x"
2124

2225
- name: "Restore dependencies"
23-
run: dotnet restore
26+
run: dotnet restore ${{ env.SOLUTION_PATH }}
2427

2528
- name: "Build"
26-
run: dotnet build --no-restore
29+
run: dotnet build ${{ env.SOLUTION_PATH }} --no-restore
2730

2831
- name: "Test"
29-
run: dotnet test --no-build --verbosity normal
32+
run: dotnet test ${{ env.SOLUTION_PATH }} --no-build --verbosity normal

0 commit comments

Comments
 (0)