Skip to content

Commit fa3deba

Browse files
fix: attempt to fix trx upload upon test failure to diagnose which test is failing
1 parent eb26290 commit fa3deba

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/stage-2-test.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,14 @@ jobs:
137137
--collect:"XPlat Code Coverage;Format=opencover;Include=**/*.cs;ExcludeByFile=**/*Tests.cs,**/Tests/**/*.cs,**/Program.cs,**/Model/**/*.cs,**/Set-up/**/*.cs,**/scripts/**/*.cs,**/HealthCheckFunction.cs,**/*Config.cs,**/bin/**/*.cs,**/obj/**/*.cs,**/Properties/**/*.cs,**/*.generated.cs,**/*.Designer.cs,**/*.g.cs,**/*.GlobalUsings.g.cs,**/*.AssemblyInfo.cs" \
138138
--verbosity quiet
139139
- name: Upload test results as artifact
140+
if: always()
140141
uses: actions/upload-artifact@v4
141142
with:
142143
name: test-results-consolidated
143144
path: |
144145
TestResults/**/*.${{ inputs.unit_test_logger_format }}
145146
TestResults/**/coverage.opencover.xml
147+
if-no-files-found: ignore
146148

147149
test-unit:
148150
name: Unit tests
@@ -189,12 +191,14 @@ jobs:
189191
--verbosity quiet
190192
done
191193
- name: Upload test results as artifact
194+
if: always()
192195
uses: actions/upload-artifact@v4
193196
with:
194197
name: test-results-${{ matrix.scope }}
195198
path: |
196199
TestResults/**/*.${{ inputs.unit_test_logger_format }}
197200
TestResults/**/coverage.opencover.xml
201+
if-no-files-found: ignore
198202

199203
aggregate-test-results:
200204
name: Aggregate results and report
@@ -261,4 +265,4 @@ jobs:
261265
make test-lint
262266
- name: Save the linting result
263267
run: |
264-
echo "Nothing to save"
268+
echo "Nothing to save"

0 commit comments

Comments
 (0)