File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1010jobs :
1111 build :
1212 name : Build & Test
13- runs-on : ubuntu-24.04
13+ runs-on : ${{ matrix.os }}
14+ strategy :
15+ matrix :
16+ os : [ubuntu-latest, windows-latest]
1417
1518 steps :
1619 - name : Checkout
@@ -27,10 +30,16 @@ jobs:
2730 - name : Build
2831 run : dotnet build -c Release
2932
33+ - name : Run tests without Coverage
34+ if : startsWith(matrix.os, 'windows')
35+ run : dotnet test -c Release -p:CollectCoverage=false
36+
3037 - name : Run tests with Coverage
38+ if : startsWith(matrix.os, 'ubuntu')
3139 run : dotnet test --no-build -c Release -p:CollectCoverage=true -e:CoverletOutputFormat=opencover
3240
3341 - name : Publish to Codecov
42+ if : startsWith(matrix.os, 'ubuntu')
3443 uses : codecov/codecov-action@v5
3544 with :
3645 fail_ci_if_error : true
You can’t perform that action at this time.
0 commit comments