@@ -19,34 +19,69 @@ jobs:
1919 - name : Setup .NET Core
2020 uses : actions/setup-dotnet@v2
2121 with :
22- dotnet-version : 6.0.x
22+ dotnet-version : |
23+ 3.1.x
24+ 6.0.x
2325 - name : Install dependencies
2426 run : dotnet restore
2527 - name : Build
2628 run : dotnet build --configuration Release --no-restore
27- - name : Test
28- run : dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results.trx"
29- - name : Publish NuGet artifacts
30- uses : actions/upload-artifact@v3
29+
30+ - name : Test (4.8)
31+ run : dotnet test --no-restore --verbosity normal -f net48 --logger "trx;LogFileName=results4.trx"
32+ - name : Generate unit test report (4.8)
33+ uses : phoenix-actions/test-reporting@v8
34+ id : unit-test-report-win48
35+ if : success() || failure()
3136 with :
32- name : NuGet package
33- path : BitFaster.Caching/bin/Release/
34- - name : Publish coverage report to coveralls.io
37+ name : test results (win net4.8)
38+ path : BitFaster.Caching.UnitTests/TestResults/results4.trx
39+ reporter : dotnet-trx
40+ only-summary : ' true'
41+
42+ - name : Test (3.1)
43+ run : dotnet test --no-restore --verbosity normal -f netcoreapp3.1 /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results3.trx"
44+ - name : Generate unit test report (3.1)
45+ uses : phoenix-actions/test-reporting@v8
46+ id : unit-test-report-win3
47+ if : success() || failure()
48+ with :
49+ name : test results (win net3.1)
50+ path : BitFaster.Caching.UnitTests/TestResults/results3.trx
51+ reporter : dotnet-trx
52+ only-summary : ' true'
53+ - name : Publish coverage report to coveralls.io (3.1)
3554 uses : coverallsapp/github-action@master
3655 with :
3756 github-token : ${{ secrets.GITHUB_TOKEN }}
38- path-to-lcov : BitFaster.Caching.UnitTests/TestResults/coverage.info
39- flag-name : win
57+ path-to-lcov : BitFaster.Caching.UnitTests/TestResults/coverage.netcoreapp3.1. info
58+ flag-name : win3
4059 parallel : true
41- - name : Generate unit test report
60+
61+ - name : Test (6.0)
62+ run : dotnet test --no-restore --verbosity normal -f net6.0 /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results6.trx"
63+ - name : Generate unit test report (6.0)
4264 uses : phoenix-actions/test-reporting@v8
43- id : unit-test-report-win
65+ id : unit-test-report-win6
4466 if : success() || failure()
4567 with :
46- name : test results (win)
47- path : BitFaster.Caching.UnitTests/TestResults/results .trx
68+ name : test results (win net6.0 )
69+ path : BitFaster.Caching.UnitTests/TestResults/results6 .trx
4870 reporter : dotnet-trx
4971 only-summary : ' true'
72+ - name : Publish coverage report to coveralls.io (6.0)
73+ uses : coverallsapp/github-action@master
74+ with :
75+ github-token : ${{ secrets.GITHUB_TOKEN }}
76+ path-to-lcov : BitFaster.Caching.UnitTests/TestResults/coverage.net6.0.info
77+ flag-name : win6
78+ parallel : true
79+
80+ - name : Publish NuGet artifacts
81+ uses : actions/upload-artifact@v3
82+ with :
83+ name : NuGet package
84+ path : BitFaster.Caching/bin/Release/
5085
5186 mac :
5287
@@ -66,20 +101,20 @@ jobs:
66101 - name : Build
67102 run : dotnet build --configuration Release --no-restore
68103 - name : Test
69- run : dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results.trx"
104+ run : dotnet test --no-restore --verbosity normal -f net6.0 /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results.trx"
70105 - name : Publish coverage report to coveralls.io
71106 uses : coverallsapp/github-action@master
72107 with :
73108 github-token : ${{ secrets.GITHUB_TOKEN }}
74- path-to-lcov : BitFaster.Caching.UnitTests/TestResults/coverage.info
109+ path-to-lcov : BitFaster.Caching.UnitTests/TestResults/coverage.net6.0. info
75110 flag-name : mac
76111 parallel : true
77112 - name : Generate unit test report
78113 uses : phoenix-actions/test-reporting@v8
79114 id : unit-test-report-mac
80115 if : success() || failure()
81116 with :
82- name : test results (mac)
117+ name : test results (mac net6.0 )
83118 path : BitFaster.Caching.UnitTests/TestResults/results.trx
84119 reporter : dotnet-trx
85120 only-summary : ' true'
0 commit comments