Skip to content

Commit

Permalink
PR #628: Limit code coverage to windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
piksel committed May 11, 2021
1 parent e839500 commit 232d690
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-test.yml
Expand Up @@ -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

Expand Down

0 comments on commit 232d690

Please sign in to comment.