Skip to content

Commit 147e9b5

Browse files
authored
test report (#284)
* trx * rename * ids * name
1 parent 75537d1 commit 147e9b5

File tree

2 files changed

+36
-5
lines changed

2 files changed

+36
-5
lines changed

.github/workflows/gate.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
name: Build and Test (windows-latest)
1+
name: CI (win)
22

33
on:
44
push:
5+
paths-ignore: [ '**.md' ]
56
branches: [ main ]
67
pull_request:
8+
paths-ignore: [ '**.md' ]
79
branches: [ main ]
810

911
jobs:
@@ -22,7 +24,7 @@ jobs:
2224
- name: Build
2325
run: dotnet build --configuration Release --no-restore
2426
- name: Test
25-
run: dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov
27+
run: dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results.trx"
2628
- name: Publish NuGet artifacts
2729
uses: actions/upload-artifact@v3
2830
with:
@@ -32,4 +34,15 @@ jobs:
3234
uses: coverallsapp/github-action@master
3335
with:
3436
github-token: ${{ secrets.GITHUB_TOKEN }}
35-
path-to-lcov: BitFaster.Caching.UnitTests/TestResults/coverage.info
37+
path-to-lcov: BitFaster.Caching.UnitTests/TestResults/coverage.info
38+
flag-name: win
39+
parallel: true
40+
- name: Generate unit test report
41+
uses: phoenix-actions/test-reporting@v8
42+
id: unit-test-report-win
43+
if: success() || failure()
44+
with:
45+
name: test results (win)
46+
path: BitFaster.Caching.UnitTests/TestResults/results.trx
47+
reporter: dotnet-trx
48+
only-summary: 'true'

.github/workflows/mac-gate.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
name: Build and Test (macos-latest)
1+
name: CI (mac)
22

33
on:
44
push:
5+
paths-ignore: [ '**.md' ]
56
branches: [ main ]
67
pull_request:
8+
paths-ignore: [ '**.md' ]
79
branches: [ main ]
810

911
jobs:
@@ -22,4 +24,20 @@ jobs:
2224
- name: Build
2325
run: dotnet build --configuration Release --no-restore
2426
- name: Test
25-
run: dotnet test --no-restore --verbosity normal
27+
run: dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results.trx"
28+
- name: Publish coverage report to coveralls.io
29+
uses: coverallsapp/github-action@master
30+
with:
31+
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
path-to-lcov: BitFaster.Caching.UnitTests/TestResults/coverage.info
33+
flag-name: mac
34+
parallel: true
35+
- name: Generate unit test report
36+
uses: phoenix-actions/test-reporting@v8
37+
id: unit-test-report-mac
38+
if: success() || failure()
39+
with:
40+
name: test results (mac)
41+
path: BitFaster.Caching.UnitTests/TestResults/results.trx
42+
reporter: dotnet-trx
43+
only-summary: 'true'

0 commit comments

Comments
 (0)