Skip to content

Commit f3d0530

Browse files
committed
Upgrade workflows to .slnx format, enable .NET 10, and streamline test execution
1 parent 242ef18 commit f3d0530

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
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.Types.sln
25+
run: dotnet restore CodeOfChaos.Types.slnx
2426

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

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

.github/workflows/release.yml

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

1515
- name: Setup .NET
16-
uses: actions/setup-dotnet@v3
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.Types.sln
23+
run: dotnet restore CodeOfChaos.Types.slnx
2224

2325
- name: Build
24-
run: dotnet build CodeOfChaos.Types.sln --configuration Release --no-restore
25-
26-
# Ensure that the tests must pass
27-
# The job will fail automatically if any test fails because `dotnet test` exits with a non-zero code
28-
- name: Run tests - Extensions
29-
run: dotnet run -c Release --no-restore --no-build
30-
working-directory: "tests/Tests.CodeOfChaos.Types"
31-
- name: Run tests - Extensions
32-
run: dotnet run -c Release --no-restore --no-build
33-
working-directory: "tests/Tests.CodeOfChaos.Types.TypedValueStore"
34-
- name: Run tests - Extensions
35-
run: dotnet run -c Release --no-restore --no-build
36-
working-directory: "tests/Tests.CodeOfChaos.Types.DataSeeder"
37-
- name: Run tests - CodeOfChaos.Types.UnitOfWork
38-
run: dotnet run -c Release --no-restore --no-build
39-
working-directory: "tests/Tests.CodeOfChaos.Types.UnitOfWork"
26+
run: dotnet build CodeOfChaos.Types.slnx --configuration Release --no-restore
27+
28+
- name: Run tests
29+
run: dotnet test --solution CodeOfChaos.Types.slnx --configuration Release --no-restore --no-build
4030

4131
- name: Publish to NuGet
4232
env:

0 commit comments

Comments
 (0)