From 0406df4499e2af724e5d34df1e82fdde12718455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nils=20m=C3=A5s=C3=A9n?= Date: Sun, 14 Mar 2021 17:37:24 +0100 Subject: [PATCH 1/3] update test/coverage packages and push to codecov --- .github/workflows/pull-request.yml | 7 ++++++- .../ICSharpCode.SharpZipLib.Tests.csproj | 16 ++++++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index d7dbbe75e..85e91e8b2 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -60,7 +60,12 @@ jobs: run: dotnet test -c debug -f ${{ matrix.target }} --no-restore - name: Run tests (Release) - run: dotnet test -c release -f ${{ matrix.target }} --no-restore + run: dotnet test -c release -f ${{ matrix.target }} --no-restore --collect="XPlat Code Coverage" + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1.2.2 + with: + fail_ci_if_error: false Pack: needs: [Build, Test] diff --git a/test/ICSharpCode.SharpZipLib.Tests/ICSharpCode.SharpZipLib.Tests.csproj b/test/ICSharpCode.SharpZipLib.Tests/ICSharpCode.SharpZipLib.Tests.csproj index bf9e5b926..2c2a261d5 100644 --- a/test/ICSharpCode.SharpZipLib.Tests/ICSharpCode.SharpZipLib.Tests.csproj +++ b/test/ICSharpCode.SharpZipLib.Tests/ICSharpCode.SharpZipLib.Tests.csproj @@ -8,15 +8,15 @@ - - - - - - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + - - From d083fcf6475af9ac8109979c37c71dbeae6402c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nils=20m=C3=A5s=C3=A9n?= Date: Sun, 14 Mar 2021 17:47:17 +0100 Subject: [PATCH 2/3] update bootstrapper packages --- .../ICSharpCode.SharpZipLib.TestBootstrapper.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ICSharpCode.SharpZipLib.TestBootstrapper/ICSharpCode.SharpZipLib.TestBootstrapper.csproj b/test/ICSharpCode.SharpZipLib.TestBootstrapper/ICSharpCode.SharpZipLib.TestBootstrapper.csproj index 0218e5d4d..3e3ba13d6 100644 --- a/test/ICSharpCode.SharpZipLib.TestBootstrapper/ICSharpCode.SharpZipLib.TestBootstrapper.csproj +++ b/test/ICSharpCode.SharpZipLib.TestBootstrapper/ICSharpCode.SharpZipLib.TestBootstrapper.csproj @@ -8,10 +8,10 @@ - + - - + + From 120ae4695339d99f82ac303367f3ac52497dd691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nils=20m=C3=A5s=C3=A9n?= Date: Sun, 14 Mar 2021 18:02:22 +0100 Subject: [PATCH 3/3] upload coverage on push --- .github/workflows/on-push.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 9703afdb3..1f6c3cad7 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -42,7 +42,12 @@ jobs: run: dotnet restore - name: Run tests - run: dotnet test -c ${{ matrix.configuration }} -f ${{ matrix.testtarget }} --no-restore + run: dotnet test -c ${{ matrix.configuration }} -f ${{ matrix.testtarget }} --no-restore --collect="XPlat Code Coverage" + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1.2.2 + with: + fail_ci_if_error: false Codacy-Analysis: runs-on: ubuntu-latest