Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,16 @@ jobs:
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}

- name: Unit tests (app + common)
- name: Unit tests
run: |
set -o pipefail
./gradlew :app:testDebugUnitTest --no-daemon --continue --stacktrace 2>&1 | tee gradle.log
# Robolectric downloads its android-all runtime from Maven Central on first use;
# that fetch fails now and then and takes the whole job with it. One retry, then
# let the real failure through.
./gradlew :app:testDebugUnitTest --no-daemon --continue --stacktrace 2>&1 | tee gradle.log || {
echo "::warning::first attempt failed, retrying once (Robolectric artifact fetch)"
./gradlew :app:testDebugUnitTest --no-daemon --continue --stacktrace 2>&1 | tee -a gradle.log
}

# The raw log lives behind an endpoint a sandboxed runner often cannot reach, and a red X
# with no message teaches nobody anything: put the useful lines in the job summary.
Expand Down
Loading