Skip to content

Commit 91530d7

Browse files
authored
Update the build pipeline
- add cd for each command to ensure the correct directory - add finished branch
1 parent 9f87421 commit 91530d7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/dotnet.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# This workflow will build a .NET project
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
2+
# For more information, see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
33

44
name: .NET
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: [ "main", "finished" ]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: [ "main", "finished" ]
1111

1212
jobs:
1313
build:
@@ -25,8 +25,10 @@ jobs:
2525
cd src/TrainingGuides.Web
2626
dotnet restore
2727
- name: Build
28-
run: dotnet build --no-restore
28+
run: |
29+
cd src/TrainingGuides.Web
30+
dotnet build --no-restore
2931
- name: Test
3032
run: |
31-
cd ../TrainingGuides.Web
33+
cd src/TrainingGuides.Web.Tests
3234
dotnet test --no-build --verbosity normal

0 commit comments

Comments
 (0)