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:
parent
a06ab46ea7
commit
de7b85ef17
4
.github/workflows/tests_unit.yml
vendored
4
.github/workflows/tests_unit.yml
vendored
@ -92,7 +92,9 @@ jobs:
|
|||||||
arguments: jacocoUnitTestReport --daemon
|
arguments: jacocoUnitTestReport --daemon
|
||||||
|
|
||||||
- name: Store Logcat as Artifact
|
- 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
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: logcat-${{ matrix.name }}
|
name: logcat-${{ matrix.name }}
|
||||||
|
Loading…
Reference in New Issue
Block a user