File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -16,24 +16,30 @@ jobs:
1616
1717 strategy :
1818 matrix :
19- dotnet-version : ['6.0.x', '7.0.x', '8.0.x']
19+ include :
20+ - dotnet-version : ' 6.0.x'
21+ dotnet-moniker : ' net6.0'
22+ - dotnet-version : ' 7.0.x'
23+ dotnet-moniker : ' net7.0'
24+ - dotnet-version : ' 8.0.x'
25+ dotnet-moniker : ' net8.0'
2026
2127 steps :
2228 - uses : actions/checkout@v4
2329
24- - name : " Setup .NET Core "
30+ - name : " Setup .NET ${{ matrix.dotnet-version }} "
2531 uses : actions/setup-dotnet@v4
2632 with :
2733 dotnet-version : ${{ matrix.dotnet-version }}
2834
2935 - name : " Restore"
30- run : dotnet restore
36+ run : dotnet restore --framework ${{ matrix.dotnet-moniker }}
3137
3238 - name : " Build"
33- run : dotnet build -c Release --no-restore
39+ run : dotnet build -c Release --no-restore --framework ${{ matrix.dotnet-moniker }}
3440
3541 - name : " Test"
36- run : dotnet test -c Release --no-restore --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[*.XUnit]*"
42+ run : dotnet test -c Release --no-restore --no-build --verbosity normal --framework ${{ matrix.dotnet-moniker }} /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[*.XUnit]*"
3743
3844 - name : Upload coverage reports to Codecov
3945 uses : codecov/codecov-action@v4
You can’t perform that action at this time.
0 commit comments