File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -22,30 +22,46 @@ jobs:
22
22
with :
23
23
access_token : ${{ github.token }}
24
24
25
- - uses : actions/checkout@v4
25
+ - name : Checkout code
26
+ uses : actions/checkout@v4
26
27
with :
27
28
fetch-depth : 0 # avoid shallow clone so nbgv can do its work.
28
29
29
- - name : ' Install .NET SDK'
30
+ - name : Setup .NET SDK
30
31
uses : actions/setup-dotnet@v4
31
32
with :
32
33
global-json-file : ./global.json
33
34
34
- - name : Versioning
35
+ - name : Restore dependencies
36
+ run : dotnet restore
37
+
38
+ - name : Setup Git Versioning
35
39
uses : dotnet/nbgv@master
36
40
id : nbgv
37
41
38
- - name : Version Info
42
+ - name : Show Version Info
39
43
run : |
40
44
echo 'SemVer2: ${{ steps.nbgv.outputs.SemVer2 }}'
41
45
42
46
- name : Build with dotnet
43
47
run : dotnet build
44
- --configuration ${{ env.BuildConfig }}
48
+ --no-restore -- configuration ${{ env.BuildConfig }}
45
49
/p:Version=${{ steps.nbgv.outputs.AssemblyVersion }}
46
50
47
51
- name : Test with dotnet
48
52
run : dotnet test
53
+ --no-build --configuration ${{ env.BuildConfig }}
54
+ --logger "trx;LogFileName=test-results.trx" --results-directory ./artifacts/testResults
55
+ continue-on-error : true
56
+
57
+ - name : Test Report
58
+ uses : dorny/test-reporter@v1
59
+ if : always()
60
+ with :
61
+ name : DotNET Tests
62
+ path : " ./artifacts/testResults/test-results.trx"
63
+ reporter : dotnet-trx
64
+ fail-on-error : true
49
65
50
66
- name : Pack NuGet
51
67
run : dotnet pack
You can’t perform that action at this time.
0 commit comments