From d245c1d2bb8c72a198862578ffa6a1897680cba0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 21:40:01 +0000 Subject: [PATCH 1/3] Bump coverlet.msbuild from 6.0.0 to 6.0.1 Bumps [coverlet.msbuild](https://github.com/coverlet-coverage/coverlet) from 6.0.0 to 6.0.1. - [Release notes](https://github.com/coverlet-coverage/coverlet/releases) - [Commits](https://github.com/coverlet-coverage/coverlet/compare/v6.0.0...v6.0.1) --- updated-dependencies: - dependency-name: coverlet.msbuild dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .../Microsoft.Kiota.Http.HttpClientLibrary.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Microsoft.Kiota.Http.HttpClientLibrary.Tests/Microsoft.Kiota.Http.HttpClientLibrary.Tests.csproj b/Microsoft.Kiota.Http.HttpClientLibrary.Tests/Microsoft.Kiota.Http.HttpClientLibrary.Tests.csproj index 1026893..47e25b1 100644 --- a/Microsoft.Kiota.Http.HttpClientLibrary.Tests/Microsoft.Kiota.Http.HttpClientLibrary.Tests.csproj +++ b/Microsoft.Kiota.Http.HttpClientLibrary.Tests/Microsoft.Kiota.Http.HttpClientLibrary.Tests.csproj @@ -11,7 +11,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From 4bc2239c65ec67d5b62d90f06d0dc653741badfa Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Thu, 22 Feb 2024 11:33:57 +0300 Subject: [PATCH 2/3] Update --- .github/workflows/build-and_test.yml | 6 ++++-- .github/workflows/sonarcloud.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and_test.yml b/.github/workflows/build-and_test.yml index 2e2e76d..ecfcbb2 100644 --- a/.github/workflows/build-and_test.yml +++ b/.github/workflows/build-and_test.yml @@ -31,7 +31,9 @@ jobs: run: dotnet restore ${{ env.solutionName }} - name: Build run: dotnet build ${{ env.solutionName }} --no-restore -c Debug /p:UseSharedCompilation=false - - name: Test - run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Debug /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover + - name: Test for net462 + run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Release --framework net462 + - name: Test for net8.0 and collect coverage + run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Release /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover --framework net8.0 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index daf47d0..d95e204 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -76,5 +76,5 @@ jobs: ./.sonar/scanner/dotnet-sonarscanner begin /k:"microsoft_kiota-http-dotnet" /o:"microsoft" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="Microsoft.Kiota.Http.HttpClientLibrary.Tests/coverage.net8.0.opencover.xml" dotnet workload restore dotnet build - dotnet test Microsoft.Kiota.Http.HttpClientLibrary.sln --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover + dotnet test Microsoft.Kiota.Http.HttpClientLibrary.sln --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --framework net8.0 ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}" \ No newline at end of file From 90e6d77caad4f6f932e8a81a91c2348fd30eef72 Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Thu, 22 Feb 2024 11:50:49 +0300 Subject: [PATCH 3/3] Fix debug build --- .github/workflows/build-and_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and_test.yml b/.github/workflows/build-and_test.yml index ecfcbb2..b305370 100644 --- a/.github/workflows/build-and_test.yml +++ b/.github/workflows/build-and_test.yml @@ -32,8 +32,8 @@ jobs: - name: Build run: dotnet build ${{ env.solutionName }} --no-restore -c Debug /p:UseSharedCompilation=false - name: Test for net462 - run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Release --framework net462 + run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Debug --framework net462 - name: Test for net8.0 and collect coverage - run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Release /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover --framework net8.0 + run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Debug /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover --framework net8.0 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3