Skip to content

Commit

Permalink
build and test for multiple frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Staffa committed Jan 19, 2024
1 parent 77f96d0 commit 634ed7f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
- name: Setup .NET Core 2.2
uses: actions/setup-dotnet@v3
with:
dotnet-version: 2.2.108
dotnet-version: 2.2.x
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x
- name: Setup .NET 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build with dotnet
run: dotnet build --configuration Release /p:ContinuousIntegrationBuild=true
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion src/PostalCodes.UnitTests/PostalCodes.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp2.2;net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>netcoreapp2.2;netcoreapp3.1;net6.0;net8.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/PostalCodes/PostalCodes.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net6.0;net8.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<None Update="Generated\PostalCodeFactory.gen.tt">
Expand Down

0 comments on commit 634ed7f

Please sign in to comment.