Skip to content

Commit 90b0ddf

Browse files
committed
Change: Update workflows to use latest actions and new solution format (.slnx), add .NET 10 targeting
1 parent 79a3c87 commit 90b0ddf

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/onPullRequest-TestDotnet.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ jobs:
1515
- name: Setup .NET
1616
uses: actions/setup-dotnet@v5
1717
with:
18-
dotnet-version: |
19-
9.x
18+
dotnet-version: |
19+
9.x
20+
10.x
2021
2122
- name: Restore dependencies
22-
run: dotnet restore CodeOfChaos.Ansi.sln
23+
run: dotnet restore CodeOfChaos.Ansi.slnx
2324

2425
- name: Build
25-
run: dotnet build CodeOfChaos.Ansi.sln --configuration Release --no-restore
26+
run: dotnet build CodeOfChaos.Ansi.slnx --configuration Release --no-restore
2627

2728
- name: Run tests
28-
run: dotnet test CodeOfChaos.Ansi.sln --configuration Release --no-restore --no-build
29+
run: dotnet test CodeOfChaos.Ansi.slnx --configuration Release --no-restore --no-build

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,20 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v5
1717

1818
- name: Setup .NET
19-
uses: actions/setup-dotnet@v3
19+
uses: actions/setup-dotnet@v5
2020
with:
21-
dotnet-version: '9.x'
21+
dotnet-version: |
22+
9.x
23+
10.x
2224
2325
- name: Restore dependencies
24-
run: dotnet restore CodeOfChaos.Ansi.sln
26+
run: dotnet restore CodeOfChaos.Ansi.slnx
2527

2628
- name: Build
27-
run: dotnet build CodeOfChaos.Ansi.sln --configuration Release --no-restore
29+
run: dotnet build CodeOfChaos.Ansi.slnx --configuration Release --no-restore
2830

2931
# Ensure that the tests must pass
3032
# The job will fail automatically if any test fails because `dotnet test` exits with a non-zero code

0 commit comments

Comments
 (0)