@@ -40,17 +40,14 @@ jobs:
40
40
name : Build, test, and pack
41
41
runs-on : windows-latest
42
42
permissions :
43
- contents : read
44
- actions : read
45
43
checks : write
46
44
steps :
47
45
- uses : actions/checkout@v4
48
46
49
47
- name : Setup .NET
50
48
uses : actions/setup-dotnet@v4
51
49
with :
52
- dotnet-version : 9.0.x
53
- dotnet-quality : ga
50
+ dotnet-version : 9.x
54
51
55
52
- name : Update project versions
56
53
run : |
@@ -111,20 +108,12 @@ jobs:
111
108
shell : pwsh
112
109
113
110
- name : (Twilio.AspNet.Core.UnitTests) Test
114
- run : dotnet test --no-build --logger trx
111
+ run : dotnet test --no-build --no-restore
115
112
working-directory : src/Twilio.AspNet.Core.UnitTests/
116
113
shell : pwsh
117
114
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
-
126
115
- name : (Twilio.AspNet.Core) Pack
127
- run : dotnet pack -c Release -o ..\..\
116
+ run : dotnet pack --no-build --no-restore - c Release -o ..\..\
128
117
working-directory : src/Twilio.AspNet.Core/
129
118
shell : pwsh
130
119
@@ -158,20 +147,12 @@ jobs:
158
147
shell : pwsh
159
148
160
149
- name : (Twilio.AspNet.Mvc.UnitTests) Test
161
- run : dotnet test --no-build --logger trx
150
+ run : dotnet test --no-build --no-restore
162
151
working-directory : src/Twilio.AspNet.Mvc.UnitTests/
163
152
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
+
173
154
- name : (Twilio.AspNet.Mvc) Pack
174
- run : dotnet pack -c Release -o ..\..\
155
+ run : dotnet pack --no-build --no-restore - c Release -o ..\..\
175
156
working-directory : src/Twilio.AspNet.Mvc/
176
157
shell : pwsh
177
158
0 commit comments