From 680bddfca1ab42f4ee6c0b95705e8ddbe5236b92 Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Wed, 30 Sep 2026 09:52:41 -0700 Subject: [PATCH] ci(store-screenshots): upload the test results when a capture fails (#7498) --- .github/workflows/store-screenshots.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/store-screenshots.yml b/.github/workflows/store-screenshots.yml index 354d8f3aaa..29ef3fcb42 100644 --- a/.github/workflows/store-screenshots.yml +++ b/.github/workflows/store-screenshots.yml @@ -144,6 +144,18 @@ jobs: if-no-files-found: warn retention-days: 7 + # The failing test's exception and the device logcat live only in these directories. + - name: Upload the test results + if: ${{ failure() }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 + with: + name: store-screenshots-test-results + path: | + store-screenshots/build/outputs/androidTest-results/connected + store-screenshots/build/reports/androidTests/connected + if-no-files-found: warn + retention-days: 7 + # The five Flathub shots, from the real desktop debug build on a virtual display. desktop: name: Desktop