Skip to content

Commit 01956e2

Browse files
authored
Update test targets (#344)
1 parent 694ceba commit 01956e2

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: '0' # all
16-
- name: Setup .NET 8.0
16+
- name: Setup .NET 9.0
1717
uses: actions/setup-dotnet@v4
1818
with:
19-
dotnet-version: '8.0.x'
19+
dotnet-version: '9.0.x'
2020
- name: Setup gitversion
2121
run: dotnet tool install --global GitVersion.Tool
2222
- name: Calculate version
@@ -30,25 +30,23 @@ jobs:
3030
run: dotnet build DynamicExpresso.sln --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}}
3131
- name: Test .net core 8.0
3232
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release --verbosity normal -f net8.0
33+
- name: Test .net core 9.0
34+
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release --verbosity normal -f net9.0
3335
test-win:
34-
runs-on: windows-2019
36+
runs-on: windows-2022
3537
steps:
3638
- uses: actions/checkout@v4
37-
- name: Setup .NET 7.0
39+
- name: Setup .NET 9.0
3840
uses: actions/setup-dotnet@v4
3941
with:
40-
dotnet-version: '7.0.x'
41-
- name: Setup .NET 8.0
42-
uses: actions/setup-dotnet@v4
43-
with:
44-
dotnet-version: '8.0.x'
42+
dotnet-version: '9.0.x'
4543
- name: Restore packages
4644
run: dotnet restore DynamicExpresso.sln
4745
- name: Build
4846
run: dotnet build DynamicExpresso.sln --no-restore -c Release
49-
- name: Test .net 4.6.1
50-
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release --verbosity normal -f net461
51-
- name: Test .net 4.5
52-
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release --verbosity normal -f net45
47+
- name: Test .net 4.6.2
48+
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release --verbosity normal -f net462
5349
- name: Test .net core 8.0
5450
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release --verbosity normal -f net8.0
51+
- name: Test .net core 9.0
52+
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release --verbosity normal -f net9.0

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
with:
2121
ref: "${{ github.event.inputs.ref }}"
2222
fetch-depth: '0' # all
23-
- name: Setup .NET Core 8.0
23+
- name: Setup .NET Core 9.0
2424
uses: actions/setup-dotnet@v4
2525
with:
26-
dotnet-version: '8.0.x'
26+
dotnet-version: '9.0.x'
2727
- name: Setup gitversion
2828
run: dotnet tool install --global GitVersion.Tool
2929
- name: Calculate version
@@ -35,8 +35,8 @@ jobs:
3535
run: dotnet restore DynamicExpresso.sln
3636
- name: Build
3737
run: dotnet build DynamicExpresso.sln --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}}
38-
- name: Test .net core 8.0
39-
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}} --verbosity normal -f net8.0
38+
- name: Test .net core 9.0
39+
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}} --verbosity normal -f net9.0
4040
- name: Setup nuget sources
4141
run: dotnet nuget add source --name github "https://nuget.pkg.github.com/dynamicexpresso/index.json"
4242
- name: Pack

test/DynamicExpresso.UnitTest/DynamicExpresso.UnitTest.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net7.0;net5.0;net462</TargetFrameworks>
4+
<TargetFrameworks>net9.0;net8.0;net462</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<ProjectReference Include="..\..\src\DynamicExpresso.Core\DynamicExpresso.Core.csproj" />
16+
<ProjectReference Include="..\..\src\DynamicExpresso.Core\DynamicExpresso.Core.csproj" />
1717
</ItemGroup>
1818

1919
</Project>

0 commit comments

Comments
 (0)