File tree Expand file tree Collapse file tree 1 file changed +22
-17
lines changed
Expand file tree Collapse file tree 1 file changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -3,33 +3,38 @@ name: .NET 9 CI
33on :
44 push :
55 branches : [ main ]
6- paths-ignore :
7- - ' **/*.md'
8- - ' docs/**'
6+ paths :
7+ - ' MinimalTodos.API/**/*.cs'
8+ - ' MinimalTodos.Tests/**/*.cs'
9+ - ' MinimalTodos.API/**/*.csproj'
10+ - ' MinimalTodos.Tests/**/*.csproj'
11+ - ' .github/workflows/dotnet.yml'
912 pull_request :
1013 branches : [ main ]
11- paths-ignore :
12- - ' **/*.md'
13- - ' docs/**'
14+ paths :
15+ - ' MinimalTodos.API/**/*.cs'
16+ - ' MinimalTodos.Tests/**/*.cs'
17+ - ' MinimalTodos.API/**/*.csproj'
18+ - ' MinimalTodos.Tests/**/*.csproj'
19+ - ' .github/workflows/dotnet.yml'
1420
1521jobs :
16- build-and-test :
17- runs-on : windows-latest
18-
22+ build :
23+ runs-on : ubuntu-latest
1924 steps :
20- - name : Checkout source
25+ - name : Checkout code
2126 uses : actions/checkout@v4
2227
23- - name : Setup .NET 9 SDK
28+ - name : Setup .NET
2429 uses : actions/setup-dotnet@v4
2530 with :
26- dotnet-version : ' 9.0.x'
31+ dotnet-version : 9.0.x
2732
2833 - name : Restore dependencies
29- run : dotnet restore
34+ run : dotnet restore MinimalTodos.sln
3035
31- - name : Build solution
32- run : dotnet build --configuration Release --no-restore
36+ - name : Build
37+ run : dotnet build MinimalTodos.sln --no-restore --configuration Release
3338
34- - name : Run tests
35- run : dotnet test --configuration Release --no-build --verbosity normal
39+ - name : Test
40+ run : dotnet test MinimalTodos.sln --no-build --configuration Release --verbosity normal
You can’t perform that action at this time.
0 commit comments