Skip to content

Commit 6a8c635

Browse files
committed
Run tests on .NET 8.0
1 parent 7b478c3 commit 6a8c635

File tree

6 files changed

+21
-6
lines changed

6 files changed

+21
-6
lines changed

.github/workflows/main.yml

+8
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
uses: actions/setup-dotnet@v1
2323
with:
2424
dotnet-version: '6.0.x'
25+
- name: Setup .NET 8.0
26+
uses: actions/setup-dotnet@v1
27+
with:
28+
dotnet-version: '8.0.x'
29+
include-prerelease: true
2530
- name: Build
2631
run: pwsh make.ps1
2732
- name: Package
@@ -39,3 +44,6 @@ jobs:
3944
- name: Test (net6.0)
4045
run: ./make.ps1 -frameworks net6.0 test-all
4146
shell: pwsh
47+
- name: Test (net8.0)
48+
run: ./make.ps1 -frameworks net8.0 test-all
49+
shell: pwsh

Build/steps.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,18 @@ steps:
2828
version: '3.1.x'
2929

3030
- task: UseDotNet@2
31-
displayName: Install .NET 6.0 SDK for build
31+
displayName: Install .NET 6.0 runtime for testing
3232
inputs:
33-
packageType: 'sdk'
33+
packageType: 'runtime'
3434
version: '6.0.x'
3535

36+
- task: UseDotNet@2
37+
displayName: Install .NET 8.0 SDK for build
38+
inputs:
39+
packageType: 'sdk'
40+
version: '8.0.x'
41+
includePreviewVersions: true
42+
3643
# Set Mono version on macOS
3744
- ${{ if eq(parameters.os, 'macOS') }}:
3845
- task: ms-devlabs.utilitytasks.task-Shellpp.Shell++@0

Tests/Metadata/Metadata.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net462;netcoreapp3.1;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net462;netcoreapp3.1;net6.0;net8.0</TargetFrameworks>
55
<!-- EOL netcoreapp3.1 is used to test netstandard2.0 assemblies -->
66
<CheckEolTargetFramework>false</CheckEolTargetFramework>
77
<OutputType>Exe</OutputType>

Tests/Microsoft.Dynamic.Test/Microsoft.Dynamic.Test.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net462;netcoreapp3.1;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net462;netcoreapp3.1;net6.0;net8.0</TargetFrameworks>
55
<!-- EOL netcoreapp3.1 is used to test netstandard2.0 assemblies -->
66
<CheckEolTargetFramework>false</CheckEolTargetFramework>
77
</PropertyGroup>

Tests/Microsoft.Scripting.Test/Microsoft.Scripting.Test.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net462;netcoreapp3.1;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net462;netcoreapp3.1;net6.0;net8.0</TargetFrameworks>
55
<!-- EOL netcoreapp3.1 is used to test netstandard2.0 assemblies -->
66
<CheckEolTargetFramework>false</CheckEolTargetFramework>
77
</PropertyGroup>

make.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Param(
44
[Parameter(Position=1)]
55
[String] $target = "release",
66
[String] $configuration = "Release",
7-
[String[]] $frameworks=@('net462','netcoreapp3.1','net6.0'),
7+
[String[]] $frameworks=@('net462','netcoreapp3.1','net6.0','net8.0'),
88
[String] $platform = "x64",
99
[switch] $runIgnored
1010
)

0 commit comments

Comments
 (0)