File tree Expand file tree Collapse file tree 6 files changed +17
-35
lines changed Expand file tree Collapse file tree 6 files changed +17
-35
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ branches:
6161 required_pull_request_reviews : null
6262 required_status_checks :
6363 strict : false
64- contexts : ['Build & Test', 'Build & Test (Windows )']
64+ contexts : ['Build & Test (ubuntu-latest) ', 'Build & Test (windows-latest )']
6565 enforce_admins : false
6666 required_linear_history : false
6767 restrictions : null
Load Diff This file was deleted.
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
@@ -22,14 +25,21 @@ jobs:
2225 dotnet-version : |
2326 6.0.x
2427 8.0.x
28+ 10.0.x
2529
2630 - name : Build
2731 run : dotnet build -c Release
2832
33+ - name : Run tests without Coverage
34+ if : startsWith(matrix.os, 'windows')
35+ run : dotnet test --no-build -c Release -p:CollectCoverage=false
36+
2937 - name : Run tests with Coverage
38+ if : startsWith(matrix.os, 'ubuntu')
3039 run : dotnet test --no-build -c Release -p:CollectCoverage=true -e:CoverletOutputFormat=opencover
3140
3241 - name : Publish to Codecov
42+ if : startsWith(matrix.os, 'ubuntu')
3343 uses : codecov/codecov-action@v5
3444 with :
3545 fail_ci_if_error : true
Original file line number Diff line number Diff line change 1616 pack :
1717 name : Create NuGet packages
1818 needs : [build]
19- runs-on : ubuntu-24.04
19+ runs-on : ubuntu-latest
2020 steps :
2121 - name : Checkout
2222 uses : actions/checkout@v6
4747 github :
4848 name : Deploy to GitHub
4949 needs : [pack]
50- runs-on : ubuntu-24.04
50+ runs-on : ubuntu-latest
5151 steps :
5252 - name : Download artifacts
5353 uses : actions/download-artifact@v6
6464 name : Create GitHub release
6565 needs : [pack]
6666 if : startsWith(github.ref, 'refs/tags/v')
67- runs-on : ubuntu-24.04
67+ runs-on : ubuntu-latest
6868 steps :
6969 - name : Checkout
7070 uses : actions/checkout@v6
8282 name : Deploy to NuGet
8383 needs : [release]
8484 if : startsWith(github.ref, 'refs/tags/v')
85- runs-on : ubuntu-24.04
85+ runs-on : ubuntu-latest
8686 steps :
8787 - name : Download artifacts
8888 uses : actions/download-artifact@v6
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ permissions:
1313jobs :
1414 automerge :
1515 name : Enable auto-merge
16- runs-on : ubuntu-24.04
16+ runs-on : ubuntu-latest
1717 if : github.actor == 'phnx47-bot' && contains(github.event.pull_request.labels.*.name, 'sync')
1818 steps :
1919 - name : Checkout
You can’t perform that action at this time.
0 commit comments