Skip to content

Commit 6922e08

Browse files
authored
Update build status workflow for .NET version
1 parent f3ca840 commit 6922e08

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/build-status.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
name: Build Status
2-
32
on:
43
push:
54
branches:
65
- master
7-
86
jobs:
97
build-and-test-windows:
108
name: Build And Test
11-
runs-on: windows-2019
12-
9+
runs-on: windows-latest
1310
steps:
14-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1512

16-
- name: Setup .NET Core
17-
uses: actions/setup-dotnet@v1
13+
- name: Setup .NET
14+
uses: actions/setup-dotnet@v4
1815
with:
19-
dotnet-version: 5.0.301
16+
dotnet-version: |
17+
8.0.x
18+
10.0.x
2019
2120
- name: Generate Classes
22-
run: dotnet run -c Release -f net5.0 -p tools\NHapiTools.Generator\NHapiTools.Generator.csproj
21+
run: dotnet run -c Release -f net8.0 -p tools\NHapiTools.Generator\NHapiTools.Generator.csproj
2322

2423
- name: Install dependencies
2524
run: dotnet restore
@@ -29,8 +28,9 @@ jobs:
2928

3029
- name: Run tests for all target frameworks
3130
run: |
32-
dotnet test -c Debug -f net461 --no-restore -r TestResults
33-
dotnet test -c Debug -f net5.0 --no-restore -r TestResults
31+
dotnet test -c Debug -f net462 --no-restore -r TestResults
32+
dotnet test -c Debug -f net8.0 --no-restore -r TestResults
33+
dotnet test -c Debug -f net10.0 --no-restore -r TestResults
3434
3535
- name: NuGet Pack
3636
run: NuGet.exe pack NHapiTools.nuspec

0 commit comments

Comments
 (0)