@@ -40,17 +40,14 @@ jobs:
4040 name : Build, test, and pack
4141 runs-on : windows-latest
4242 permissions :
43- contents : read
44- actions : read
4543 checks : write
4644 steps :
4745 - uses : actions/checkout@v4
4846
4947 - name : Setup .NET
5048 uses : actions/setup-dotnet@v4
5149 with :
52- dotnet-version : 9.0.x
53- dotnet-quality : ga
50+ dotnet-version : 9.x
5451
5552 - name : Update project versions
5653 run : |
@@ -111,20 +108,12 @@ jobs:
111108 shell : pwsh
112109
113110 - name : (Twilio.AspNet.Core.UnitTests) Test
114- run : dotnet test --no-build --logger trx
111+ run : dotnet test --no-build --no-restore
115112 working-directory : src/Twilio.AspNet.Core.UnitTests/
116113 shell : pwsh
117114
118- - name : (Twilio.AspNet.Core.UnitTests) Report Tests
119- uses : dorny/test-reporter@v1
120- if : success() || failure() # run this step even if previous step failed
121- with :
122- name : Twilio.AspNet.Core.UnitTests
123- path : src/Twilio.AspNet.Core.UnitTests/TestResults/*.trx
124- reporter : dotnet-trx
125-
126115 - name : (Twilio.AspNet.Core) Pack
127- run : dotnet pack -c Release -o ..\..\
116+ run : dotnet pack --no-build --no-restore - c Release -o ..\..\
128117 working-directory : src/Twilio.AspNet.Core/
129118 shell : pwsh
130119
@@ -158,20 +147,12 @@ jobs:
158147 shell : pwsh
159148
160149 - name : (Twilio.AspNet.Mvc.UnitTests) Test
161- run : dotnet test --no-build --logger trx
150+ run : dotnet test --no-build --no-restore
162151 working-directory : src/Twilio.AspNet.Mvc.UnitTests/
163152 shell : pwsh
164-
165- - name : (Twilio.AspNet.Mvc.UnitTests) Report Tests
166- uses : dorny/test-reporter@v1
167- if : success() || failure() # run this step even if previous step failed
168- with :
169- name : Twilio.AspNet.Mvc.UnitTests
170- path : src/Twilio.AspNet.Mvc.UnitTests/TestResults/*.trx
171- reporter : dotnet-trx
172-
153+
173154 - name : (Twilio.AspNet.Mvc) Pack
174- run : dotnet pack -c Release -o ..\..\
155+ run : dotnet pack --no-build --no-restore - c Release -o ..\..\
175156 working-directory : src/Twilio.AspNet.Mvc/
176157 shell : pwsh
177158
0 commit comments