From 8676d7bccc07b3d9d7710cd458de2feb6dfc619e Mon Sep 17 00:00:00 2001 From: Max Vorchakov Date: Tue, 12 Dec 2023 10:46:32 +0100 Subject: [PATCH] Support of multiple frameworks (#53) * Support of multiple frameworks * fixed converlet --- .github/workflows/build.yml | 13 +++++++------ Directory.Build.props | 2 +- samples/PowerPipe.Sample/PowerPipe.Sample.csproj | 5 +++-- ...e.Extensions.MicrosoftDependencyInjection.csproj | 10 +++++++++- .../PowerPipe.UnitTests/PowerPipe.UnitTests.csproj | 7 +++---- 5 files changed, 23 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 723b58f..07c6242 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,20 +14,21 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: | + 6.0.x + 7.0.x + 8.0.x - name: Restore dependencies run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover --no-build --verbosity normal + - name: Build&Test + run: dotnet test -f net8.0 -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover --no-restore --verbosity normal - name: Create Test Coverage Badge uses: simon-k/dotnet-code-coverage-badge@v1.0.0 id: create_coverage_badge with: label: coverage color: brightgreen - path: tests/PowerPipe.UnitTests/TestResults/coverage.opencover.xml + path: tests/PowerPipe.UnitTests/TestResults/coverage.net8.0.opencover.xml gist-filename: code-coverage.json gist-id: 87b833b49852f7f088e1d4d913600a91 gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }} diff --git a/Directory.Build.props b/Directory.Build.props index 7ff24a6..be75675 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - net6.0 + net6.0;net7.0;net8.0 logo.png true diff --git a/samples/PowerPipe.Sample/PowerPipe.Sample.csproj b/samples/PowerPipe.Sample/PowerPipe.Sample.csproj index 5961fcc..6ed4bad 100644 --- a/samples/PowerPipe.Sample/PowerPipe.Sample.csproj +++ b/samples/PowerPipe.Sample/PowerPipe.Sample.csproj @@ -1,6 +1,7 @@ + net8.0 Exe false false @@ -12,8 +13,8 @@ - - + + diff --git a/src/PowerPipe.Extensions.MicrosoftDependencyInjection/PowerPipe.Extensions.MicrosoftDependencyInjection.csproj b/src/PowerPipe.Extensions.MicrosoftDependencyInjection/PowerPipe.Extensions.MicrosoftDependencyInjection.csproj index b4a4dd6..f5f9bd0 100644 --- a/src/PowerPipe.Extensions.MicrosoftDependencyInjection/PowerPipe.Extensions.MicrosoftDependencyInjection.csproj +++ b/src/PowerPipe.Extensions.MicrosoftDependencyInjection/PowerPipe.Extensions.MicrosoftDependencyInjection.csproj @@ -8,8 +8,16 @@ - + + + + + + + + + diff --git a/tests/PowerPipe.UnitTests/PowerPipe.UnitTests.csproj b/tests/PowerPipe.UnitTests/PowerPipe.UnitTests.csproj index 65f45b7..6962067 100644 --- a/tests/PowerPipe.UnitTests/PowerPipe.UnitTests.csproj +++ b/tests/PowerPipe.UnitTests/PowerPipe.UnitTests.csproj @@ -1,14 +1,15 @@ + net8.0 false false - - + + @@ -31,6 +32,4 @@ - -