Skip to content

Commit 755bea6

Browse files
authored
Update dotnet.yml
1 parent 89b38db commit 755bea6

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/dotnet.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
# 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
3-
4-
name: .NET
1+
name: Build & Test
52

63
on:
74
push:
8-
branches: [ "main" ]
5+
paths:
6+
- 'src/**'
7+
- '.github/workflows/**'
8+
branches: [ main ]
99
pull_request:
10-
branches: [ "main" ]
10+
paths:
11+
- 'src/**'
12+
branches: [ main ]
1113

1214
jobs:
1315
build:
@@ -21,8 +23,11 @@ jobs:
2123
with:
2224
dotnet-version: 8.0.x
2325
- name: Restore dependencies
26+
working-directory: ./src
2427
run: dotnet restore
2528
- name: Build
29+
working-directory: ./src
2630
run: dotnet build --no-restore
2731
- name: Test
32+
working-directory: ./src
2833
run: dotnet test --no-build --verbosity normal

0 commit comments

Comments
 (0)