Skip to content

Commit 03edbea

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] Multiple .NET framework versions
1 parent 426a6a4 commit 03edbea

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.github/workflows/dotnet.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os: ["windows-2022", "ubuntu-24.04", "macos-14"]
24+
dotnet-version: [8.0.x, 9.0.x]
2425
runs-on: ${{ matrix.os }}
2526
steps:
2627
- uses: actions/checkout@v4
27-
- name: Setup .NET
28+
- name: Setup .NET ${{ matrix.dotnet-version }}
2829
uses: actions/setup-dotnet@v4
2930
with:
30-
dotnet-version: 8.0.x
31+
dotnet-version: ${{ matrix.dotnet-version }}
32+
- name: Tooling check
33+
run: >
34+
dotnet --version
3135
- name: Restore dependencies
3236
run: dotnet restore
3337
- name: Build

src/algorithm_exercises_csharp/algorithm_exercises_csharp.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-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net8.0;net9.0</TargetFramework>
55
<RootNamespace>algorithm_exercises_csharp</RootNamespace>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>

src/algorithm_exercises_csharp_base/algorithm_exercises_csharp_base.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-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net8.0;net9.0</TargetFramework>
55
<RootNamespace>algorithm_exercises_csharp</RootNamespace>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>

src/algorithm_exercises_csharp_test/algorithm_exercises_csharp_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-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net8.0;net9.0</TargetFramework>
55
<RootNamespace>algorithm_exercises_csharp_test</RootNamespace>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)