Skip to content

Commit

Permalink
feat: include net7 in the test suit (#97)
Browse files Browse the repository at this point in the history
Since .net 7 was released this week, we should also run our test suite
across it

Signed-off-by: Benjamin Evenson <2031163+benjiro@users.noreply.github.com>
  • Loading branch information
benjiro authored Nov 12, 2022
1 parent 1612dc4 commit 594d5f2
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
version: [net6.0]
version: [net7.0]

env:
OS: ${{ matrix.os }}
Expand All @@ -26,6 +26,11 @@ jobs:
with:
fetch-depth: 0

- name: Setup .NET Core 7.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'

- name: Install dependencies
run: dotnet restore

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

- name: Setup .NET Core 6.0
- name: Setup .NET Core 7.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x

- name: Install format tool
run: dotnet tool install -g dotnet-format
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/linux-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@ jobs:

strategy:
matrix:
version: [net6.0]
version: [net6.0,net7.0]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup .NET Core 6.0.x, 7.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Install dependencies
run: dotnet restore

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@ jobs:

strategy:
matrix:
version: [net462,net6.0]
version: [net462,net6.0,net7.0]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup .NET Core 6.0.x, 7.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Install dependencies
run: dotnet restore

Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"rollForward": "latestFeature",
"version": "6.0.402"
"version": "7.0.100"
}
}
2 changes: 1 addition & 1 deletion test/OpenFeature.Tests/OpenFeature.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks>
<RootNamespace>OpenFeature.Tests</RootNamespace>
</PropertyGroup>
Expand Down

0 comments on commit 594d5f2

Please sign in to comment.