Skip to content

Commit 7f4df79

Browse files
authored
report (#568)
1 parent a056f06 commit 7f4df79

File tree

2 files changed

+64
-44
lines changed

2 files changed

+64
-44
lines changed

.github/workflows/gate.yml

Lines changed: 22 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/testreport.yml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,52 @@ jobs:
88
report:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: phoenix-actions/test-reporting@v15
11+
- name: Report win .NET 4.8
12+
uses: phoenix-actions/test-reporting@v15
1213
id: unit-test-report-win48 # Set ID reference for step
1314
with:
1415
artifact: test-results-win48 # artifact name
1516
name: Test results (win net4.8) # Name of the check run which will be created
1617
path: '*.trx' # Path to test results (inside artifact .zip)
1718
reporter: dotnet-trx # Format of test results
19+
only-summary: 'true'
20+
21+
- name: Report win 3.1
22+
uses: phoenix-actions/test-reporting@v15
23+
id: unit-test-report-win3
24+
with:
25+
artifact: test-results-win3
26+
name: Test results (win 3.1)
27+
path: '*.trx'
28+
reporter: dotnet-trx
29+
only-summary: 'true'
30+
31+
- name: Report win 6.0
32+
uses: phoenix-actions/test-reporting@v15
33+
id: unit-test-report-win6
34+
with:
35+
artifact: test-results-win6
36+
name: Test results (win 6.0)
37+
path: '*.trx'
38+
reporter: dotnet-trx
39+
only-summary: 'true'
40+
41+
- name: Report mac 6.0
42+
uses: phoenix-actions/test-reporting@v15
43+
id: unit-test-report-mac
44+
with:
45+
artifact: test-results-mac
46+
name: Test results (mac 6.0)
47+
path: '*.trx'
48+
reporter: dotnet-trx
49+
only-summary: 'true'
50+
51+
- name: Report linux 6.0
52+
uses: phoenix-actions/test-reporting@v15
53+
id: unit-test-report-linux
54+
with:
55+
artifact: test-results-linux
56+
name: Test results (linux 6.0)
57+
path: '*.trx'
58+
reporter: dotnet-trx
1859
only-summary: 'true'

0 commit comments

Comments
 (0)