File tree Expand file tree Collapse file tree 5 files changed +16
-36
lines changed
Expand file tree Collapse file tree 5 files changed +16
-36
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
@@ -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 --no-build -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
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