From 24c8406ed87fe55a9c6e6ea469a3d1217a24aa2f Mon Sep 17 00:00:00 2001 From: Patrick Honkonen <1883101+SaintPatrck@users.noreply.github.com> Date: Wed, 23 Oct 2024 12:53:20 -0400 Subject: [PATCH] Upload test reports on test and build workflow failures (#4143) --- .github/workflows/build.yml | 7 +++++++ .github/workflows/test.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 529da4214..ae6156f18 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -84,6 +84,13 @@ jobs: - name: Build run: bundle exec fastlane assembleDebugApks + - name: Upload test reports on failure + uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + if: failure() + with: + name: test-reports + path: app/build/reports/tests/ + publish_playstore: name: Publish Play Store artifacts needs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 83fff28bc..9cb8b4d6b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -80,6 +80,13 @@ jobs: run: | bundle exec fastlane check + - name: Upload test reports on failure + uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + if: failure() + with: + name: test-reports + path: app/build/reports/tests/ + - name: Upload to codecov.io uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 with: