File tree Expand file tree Collapse file tree 1 file changed +14
-32
lines changed
Expand file tree Collapse file tree 1 file changed +14
-32
lines changed Original file line number Diff line number Diff line change @@ -3,49 +3,31 @@ name: .NET
33on :
44 push :
55 branches :
6- - main
7- - release
6+ - ' main'
7+ - ' release'
88 pull_request :
99 branches :
1010 - ' **'
1111
1212env :
1313 USE_FULL_NUMERIC_PROVIDER : " true"
1414 MSBUILDDISABLENODEREUSE : " 1"
15- # Force single MSBuild worker to reduce crash risk
1615 DOTNET_CLI_TELEMETRY_OPTOUT : " 1"
1716
1817jobs :
1918 build :
19+
2020 runs-on : ubuntu-latest
2121
2222 steps :
23- - uses : actions/checkout@v4
24-
25- - name : Setup .NET
26- uses : actions/setup-dotnet@v4
27- with :
28- global-json-file : global.json
29-
30- - name : Restore dependencies
31- run : |
32- dotnet restore --configuration Release
33-
34- - name : Build
35- run : |
36- dotnet build --configuration Release --no-restore \
37- -maxcpucount:1 /nodeReuse:false
38-
39- - name : Test
40- run : |
41- dotnet test --configuration Release --no-build \
42- --verbosity minimal \
43- --results-directory ./TestResults \
44- --logger "trx;LogFileName=test_results.trx"
45-
46- - name : Upload test results
47- uses : actions/upload-artifact@v4
48- if : always()
49- with :
50- name : test-results
51- path : ./TestResults
23+ - uses : actions/checkout@v4
24+ - name : Setup .NET
25+ uses : actions/setup-dotnet@v4
26+ with :
27+ global-json-file : global.json
28+ - name : Restore dependencies
29+ run : dotnet restore
30+ - name : Build
31+ run : dotnet build --no-restore
32+ - name : Test
33+ run : dotnet test --no-build --verbosity quiet
You can’t perform that action at this time.
0 commit comments