Skip to content

Commit 25a1688

Browse files
authored
Limit code coverage to windows CI
1 parent 51343ec commit 25a1688

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,15 @@ jobs:
6565
run: dotnet test -c debug -f ${{ matrix.target }} --no-restore
6666

6767
- name: Run tests (Release)
68+
# Only upload code coverage for windows in an attempt to fix the broken code coverage
69+
if: ${{ matrix.os == 'windows' }}
6870
run: dotnet test -c release -f ${{ matrix.target }} --no-restore --collect="XPlat Code Coverage"
6971

72+
- name: Run tests with coverage (Release)
73+
# Only upload code coverage for windows in an attempt to fix the broken code coverage
74+
if: ${{ matrix.os != 'windows' }}
75+
run: dotnet test -c release -f ${{ matrix.target }} --no-restore
76+
7077
- name: Upload coverage to Codecov
7178
uses: codecov/[email protected]
7279

0 commit comments

Comments
 (0)