File tree Expand file tree Collapse file tree 2 files changed +23
-8
lines changed Expand file tree Collapse file tree 2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,32 @@ jobs:
14
14
15
15
steps :
16
16
- name : Checkout
17
- uses : actions/checkout@v2
17
+ uses : actions/checkout@v4
18
18
with :
19
19
fetch-depth : 0
20
20
21
- - name : Setup MSBuild
22
- uses : microsoft /setup-msbuild@v1.0.2
21
+ - name : Setup .NET
22
+ uses : actions /setup-dotnet@v4
23
23
24
- - name : Setup VSTest
25
- uses : darenm/Setup-VSTest@v1
24
+ - name : Restore
25
+ run : dotnet restore -bl:logs/restore.binlog
26
26
27
27
- name : Build
28
- run : msbuild
29
-
28
+ run : dotnet build --configuration Debug --no-restore -bl:logs/build.binlog
29
+
30
30
- name : Test
31
- run : vstest.console **\*.UnitTests.dll
31
+ run : dotnet test --configuration Debug --no-build --logger trx --results-directory TestResults
32
+
33
+ - name : Upload test results
34
+ uses : actions/upload-artifact@v4
35
+ with :
36
+ name : test-results
37
+ path : ./TestResults
38
+ if : ${{ always() }} # Always run this step even on failure
39
+
40
+ - name : Upload logs
41
+ uses : actions/upload-artifact@v4
42
+ with :
43
+ name : logs
44
+ path : ./logs
45
+ if : ${{ always() }} # Always run this step even on failure
Original file line number Diff line number Diff line change 7
7
<MSBuildTreatWarningsAsErrors >true</MSBuildTreatWarningsAsErrors >
8
8
<NoWarn >$(NoWarn);SA0001</NoWarn >
9
9
<RestoreUseStaticGraphEvaluation >true</RestoreUseStaticGraphEvaluation >
10
+ <UseArtifactsOutput >true</UseArtifactsOutput >
10
11
</PropertyGroup >
11
12
</Project >
You can’t perform that action at this time.
0 commit comments