File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Tests
1+ name : build and test
22
33on :
44 push :
5- branches : [ master ]
65 pull_request :
7- branches : [ master ]
6+ branches : [ main ]
7+ paths :
8+ - ' **.cs'
9+ - ' **.csproj'
10+
11+ env :
12+ DOTNET_VERSION : ' 9.0.x' # The .NET SDK version to use
813
914jobs :
10- build :
15+ build-and-test :
1116
17+ name : build-and-test
1218 runs-on : ubuntu-latest
1319
14- steps :
15- - uses : actions/checkout@v4
16- - name : Setup dotnet
17- uses : actions/setup-dotnet@v4
18- with :
19- dotnet-version : ' 9.0.x'
20+ steps :
21+ - uses : actions/checkout@v3
22+ - name : Setup .NET
23+ uses : actions/setup-dotnet@v3
24+ with :
25+ dotnet-version : ${{ env.DOTNET_VERSION }}
26+
2027 - name : Install dependencies
21- run : dotnet restore
28+ run : dotnet restore
29+
2230 - name : Build
23- run : dotnet build --no-restore --configuration Release
24- - name : Test with the dotnet CLI
25- run : dotnet test --no-build
31+ run : dotnet build --configuration Release --no-restore
32+
33+ - name : Test
34+ run : dotnet test --no-restore --verbosity normal
You can’t perform that action at this time.
0 commit comments