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