@@ -37,27 +37,15 @@ jobs:
37
37
with :
38
38
name : test-results-win48
39
39
path : BitFaster.Caching.UnitTests/TestResults/results4.trx
40
- # - name: Generate unit test report (4.8)
41
- # uses: phoenix-actions/test-reporting@v15
42
- # id: unit-test-report-win48
43
- # if: success() || failure()
44
- # with:
45
- # name: test results (win net4.8)
46
- # path: BitFaster.Caching.UnitTests/TestResults/results4.trx
47
- # reporter: dotnet-trx
48
- # only-summary: 'true'
49
-
40
+
50
41
- name : Test (3.1)
51
42
run : dotnet test --no-restore --verbosity normal -f netcoreapp3.1 /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results3.trx"
52
- - name : Generate unit test report (3.1)
53
- uses : phoenix-actions/test-reporting@v15
54
- id : unit-test-report-win3
55
- if : success() || failure()
43
+ - name : Upload test results (3.1)
44
+ uses : actions/upload-artifact@v4 # upload test results
45
+ if : success() || failure() # run this step even if previous step failed
56
46
with :
57
- name : test results (win net3.1)
58
- path : BitFaster.Caching.UnitTests/TestResults/results3.trx
59
- reporter : dotnet-trx
60
- only-summary : ' true'
47
+ name : test-results-win3
48
+ path : BitFaster.Caching.UnitTests/TestResults/results3.trx
61
49
- name : Publish coverage report to coveralls.io (3.1)
62
50
uses : coverallsapp/github-action@master
63
51
with :
@@ -67,16 +55,13 @@ jobs:
67
55
parallel : true
68
56
69
57
- name : Test (6.0)
70
- run : dotnet test --no-restore --verbosity normal -f net6.0 /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results6.trx"
71
- - name : Generate unit test report (6.0)
72
- uses : phoenix-actions/test-reporting@v15
73
- id : unit-test-report-win6
74
- if : success() || failure()
58
+ run : dotnet test --no-restore --verbosity normal -f net6.0 /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results6.trx"
59
+ - name : Upload test results (6.0)
60
+ uses : actions/upload-artifact@v4 # upload test results
61
+ if : success() || failure() # run this step even if previous step failed
75
62
with :
76
- name : test results (win net6.0)
77
- path : BitFaster.Caching.UnitTests/TestResults/results6.trx
78
- reporter : dotnet-trx
79
- only-summary : ' true'
63
+ name : test-results-win6
64
+ path : BitFaster.Caching.UnitTests/TestResults/results6.trx
80
65
- name : Publish coverage report to coveralls.io (6.0)
81
66
uses : coverallsapp/github-action@master
82
67
with :
@@ -119,15 +104,12 @@ jobs:
119
104
path-to-lcov : BitFaster.Caching.UnitTests/TestResults/coverage.net6.0.info
120
105
flag-name : mac
121
106
parallel : true
122
- - name : Generate unit test report
123
- uses : phoenix-actions/test-reporting@v15
124
- id : unit-test-report-mac
125
- if : success() || failure()
107
+ - name : Upload test results (6.0)
108
+ uses : actions/upload-artifact@v4 # upload test results
109
+ if : success() || failure() # run this step even if previous step failed
126
110
with :
127
- name : test results (mac net6.0)
128
- path : BitFaster.Caching.UnitTests/TestResults/results.trx
129
- reporter : dotnet-trx
130
- only-summary : ' true'
111
+ name : test-results-mac
112
+ path : BitFaster.Caching.UnitTests/TestResults/results.trx
131
113
132
114
linux :
133
115
@@ -157,15 +139,12 @@ jobs:
157
139
path-to-lcov : BitFaster.Caching.UnitTests/TestResults/coverage.net6.0.info
158
140
flag-name : linux
159
141
parallel : true
160
- - name : Generate unit test report
161
- uses : phoenix-actions/test-reporting@v15
162
- id : unit-test-report-linux
163
- if : success() || failure()
142
+ - name : Upload test results (6.0)
143
+ uses : actions/upload-artifact@v4 # upload test results
144
+ if : success() || failure() # run this step even if previous step failed
164
145
with :
165
- name : test results (linux net6.0)
166
- path : BitFaster.Caching.UnitTests/TestResults/results.trx
167
- reporter : dotnet-trx
168
- only-summary : ' true'
146
+ name : test-results-linux
147
+ path : BitFaster.Caching.UnitTests/TestResults/results.trx
169
148
170
149
coverage :
171
150
0 commit comments