File tree Expand file tree Collapse file tree 2 files changed +36
-5
lines changed Expand file tree Collapse file tree 2 files changed +36
-5
lines changed Original file line number Diff line number Diff line change 1- name : Build and Test (windows-latest )
1+ name : CI (win )
22
33on :
44 push :
5+ paths-ignore : [ '**.md' ]
56 branches : [ main ]
67 pull_request :
8+ paths-ignore : [ '**.md' ]
79 branches : [ main ]
810
911jobs :
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 :
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'
Original file line number Diff line number Diff line change 1- name : Build and Test (macos-latest )
1+ name : CI (mac )
22
33on :
44 push :
5+ paths-ignore : [ '**.md' ]
56 branches : [ main ]
67 pull_request :
8+ paths-ignore : [ '**.md' ]
79 branches : [ main ]
810
911jobs :
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'
You can’t perform that action at this time.
0 commit comments