From 232d690e4a01a1483f07c78572ecae58849900c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nils=20m=C3=A5s=C3=A9n?= Date: Tue, 11 May 2021 13:53:41 +0200 Subject: [PATCH] PR #628: Limit code coverage to windows CI --- .github/workflows/build-test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 5fb47261..b9217ee3 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -65,8 +65,15 @@ jobs: run: dotnet test -c debug -f ${{ matrix.target }} --no-restore - name: Run tests (Release) + # Only upload code coverage for windows in an attempt to fix the broken code coverage + if: ${{ matrix.os == 'windows' }} run: dotnet test -c release -f ${{ matrix.target }} --no-restore --collect="XPlat Code Coverage" + - name: Run tests with coverage (Release) + # Only upload code coverage for windows in an attempt to fix the broken code coverage + if: ${{ matrix.os != 'windows' }} + run: dotnet test -c release -f ${{ matrix.target }} --no-restore + - name: Upload coverage to Codecov uses: codecov/codecov-action@v1.2.2