Skip to content

Commit

Permalink
Add .NET 7 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbaldoumas committed Feb 5, 2023
1 parent 44fd96f commit 0965d99
Show file tree
Hide file tree
Showing 20 changed files with 21,367 additions and 21,389 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -48,18 +48,14 @@ jobs:
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Set up required .NET SDKs
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x
- name: Setup .NET 5.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 5.0.x
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x

# Restore & Build
- name: Restore
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/dotnet.yml
Expand Up @@ -11,21 +11,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [netcoreapp3.1, net5.0, net6.0]
dotnet: [net6.0, net7.0]
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x
- name: Setup .NET 5.0
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 5.0.x
- name: Setup .NET 6.0
dotnet-version: 6.0.x
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x
- name: Install dependencies
run: cd src && dotnet restore
- name: Build
Expand All @@ -45,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [netcoreapp3.1] # only upload one coverage report
dotnet: [net6.0] # only upload one coverage report
steps:
- uses: actions/checkout@v3
- name: Download Code Coverage Results
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x
- name: Restore Dependencies
run: cd src && dotnet restore
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_preview.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x
- name: Restore Dependencies
run: dotnet restore src
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion src/Atrea.PolicyEngine/Atrea.PolicyEngine.csproj
Expand Up @@ -44,7 +44,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.4.33">
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.5.22">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
12 changes: 6 additions & 6 deletions tests/Atrea.PolicyEngine.Tests/Atrea.PolicyEngine.Tests.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -15,19 +15,19 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="3.1.2">
<PackageReference Include="coverlet.msbuild" Version="3.2.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="6.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.1" />
<PackageReference Include="FluentAssertions" Version="6.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
<PackageReference Include="NSubstitute" Version="4.4.0" />
<PackageReference Include="NSubstitute.Analyzers.CSharp" Version="1.0.15">
<PackageReference Include="NSubstitute.Analyzers.CSharp" Version="1.0.16">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit 0965d99

Please sign in to comment.