Skip to content

Commit 6ac35c7

Browse files
committed
Deduplication 'if' condition for Create test reports step
1 parent 5e51f33 commit 6ac35c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,9 @@ jobs:
162162
run: vstest.console.exe ./tooling/**/CommunityToolkit.Tests.${{ matrix.multitarget }}.build.appxrecipe /Framework:FrameworkUap10 /logger:"trx;LogFileName=${{ matrix.multitarget }}.trx" /Blame
163163

164164
- name: Create test reports
165-
if: ${{ matrix.multitarget == 'uwp' || matrix.multitarget == 'wasdk' }}
166165
run: |
167166
testspace '[${{ matrix.multitarget }}]./TestResults/*.trx'
168-
if: ${{ always() && (steps.test-generator.conclusion == 'success' || steps.test-platform.conclusion == 'success') }}
167+
if: ${{ (matrix.multitarget == 'uwp' || matrix.multitarget == 'wasdk') && (steps.test-generator.conclusion == 'success' || steps.test-platform.conclusion == 'success') }}
169168

170169
- name: Artifact - Diagnostic Logs
171170
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)