Skip to content

Commit 87ffb39

Browse files
authored
chore(ci): only export coverage for release
1 parent 7ed87d1 commit 87ffb39

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/on-push.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,14 @@ jobs:
4040

4141
- name: Restore test dependencies
4242
run: dotnet restore
43-
44-
- name: Run tests
45-
run: dotnet test -c ${{ matrix.configuration }} -f ${{ matrix.testtarget }} --no-restore --collect="XPlat Code Coverage"
43+
44+
- name: Run tests (Debug)
45+
if: ${{ matrix.configuration == 'debug' }}
46+
run: dotnet test -c debug -f ${{ matrix.testtarget }} --no-restore
47+
48+
- name: Run tests (Release)
49+
if: ${{ matrix.configuration == 'release' }}
50+
run: dotnet test -c release -f ${{ matrix.testtarget }} --no-restore --collect="XPlat Code Coverage"
4651

4752
- name: Upload coverage to Codecov
4853
uses: codecov/[email protected]

0 commit comments

Comments
 (0)