0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-19 19:42:17 +02:00

build(ci): upload logs on timeout

A timeout can cancel tests, which blocks
log uploads

Issue 16253

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif

https://docs.github.com/en/actions/learn-github-actions/expressions#cancelled
This commit is contained in:
David Allison 2024-04-23 14:00:00 +01:00 committed by Mike Hardy
parent a06ab46ea7
commit de7b85ef17

View File

@ -92,7 +92,9 @@ jobs:
arguments: jacocoUnitTestReport --daemon
- name: Store Logcat as Artifact
if: failure()
# cancelled() handles test timeouts
# remove when test timeouts cause a failure()
if: failure() || cancelled()
uses: actions/upload-artifact@v3
with:
name: logcat-${{ matrix.name }}