-
Notifications
You must be signed in to change notification settings - Fork 976
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR #628: Limit code coverage to windows CI
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
|
||
|