@@ -37,27 +37,15 @@ jobs:
3737 with :
3838 name : test-results-win48
3939 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+
5041 - name : Test (3.1)
5142 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
5646 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
6149 - name : Publish coverage report to coveralls.io (3.1)
6250 uses : coverallsapp/github-action@master
6351 with :
@@ -67,16 +55,13 @@ jobs:
6755 parallel : true
6856
6957 - 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
7562 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
8065 - name : Publish coverage report to coveralls.io (6.0)
8166 uses : coverallsapp/github-action@master
8267 with :
@@ -119,15 +104,12 @@ jobs:
119104 path-to-lcov : BitFaster.Caching.UnitTests/TestResults/coverage.net6.0.info
120105 flag-name : mac
121106 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
126110 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
131113
132114 linux :
133115
@@ -157,15 +139,12 @@ jobs:
157139 path-to-lcov : BitFaster.Caching.UnitTests/TestResults/coverage.net6.0.info
158140 flag-name : linux
159141 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
164145 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
169148
170149 coverage :
171150
0 commit comments