Skip to content

Commit 94d1e99

Browse files
committed
Chore: Update GitHub workflows to support .NET 10, migrate to solution filter (*.slnx), and upgrade action versions
1 parent c850191 commit 94d1e99

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/onPullRequest-TestDotnet.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ jobs:
1717
- name: Setup .NET
1818
uses: actions/setup-dotnet@v5
1919
with:
20-
dotnet-version: '9.x'
20+
dotnet-version: |
21+
9.x
22+
10.x
2123
2224
- name: Restore dependencies
23-
run: dotnet restore CodeOfChaos.Extensions.sln
25+
run: dotnet restore CodeOfChaos.Extensions.slnx
2426

2527
- name: Build
26-
run: dotnet build CodeOfChaos.Extensions.sln --configuration Release --no-restore -p:GeneratePackageOnBuild=false -p:IsPackable=false
28+
run: dotnet build CodeOfChaos.Extensions.slnx --configuration Release --no-restore -p:GeneratePackageOnBuild=false -p:IsPackable=false
2729

2830
- name: Run tests
29-
run: dotnet test CodeOfChaos.Extensions.sln --configuration Release --no-restore --no-build
31+
run: dotnet test CodeOfChaos.Extensions.slnx --configuration Release --no-restore --no-build

.github/workflows/release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,25 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v5
1414

1515
- name: Setup .NET
16-
uses: actions/setup-dotnet@v4
16+
uses: actions/setup-dotnet@v5
1717
with:
18-
dotnet-version: '9.x'
18+
dotnet-version: |
19+
9.x
20+
10.x
1921
2022
- name: Restore dependencies
21-
run: dotnet restore CodeOfChaos.Extensions.sln
23+
run: dotnet restore CodeOfChaos.Extensions.slnx
2224

2325
- name: Build
24-
run: dotnet build CodeOfChaos.Extensions.sln --configuration Release --no-restore
26+
run: dotnet build CodeOfChaos.Extensions.slnx --configuration Release --no-restore
2527

2628
# Ensure that the tests must pass
2729
# The job will fail automatically if any test fails because `dotnet test` exits with a non-zero code
2830
- name: Run tests
29-
run: dotnet test CodeOfChaos.Extensions.sln --configuration Release --no-restore --no-build
31+
run: dotnet test CodeOfChaos.Extensions.slnx --configuration Release --no-restore --no-build
3032

3133
- name: Publish to NuGet
3234
env:

0 commit comments

Comments
 (0)