From 772e4e99096e32695b7e7d5c430c05debf35d994 Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Sun, 10 Apr 2022 22:47:46 +0200 Subject: [PATCH] Add artifact upload on failure --- .github/workflows/detox-ios.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/detox-ios.yml b/.github/workflows/detox-ios.yml index 733e6f13..838311a5 100644 --- a/.github/workflows/detox-ios.yml +++ b/.github/workflows/detox-ios.yml @@ -41,3 +41,10 @@ jobs: - name: Run tests run: yarn detox test --configuration ios + + # Store any Detox screenshots on test failure + - uses: actions/upload-artifact@v3 + if: failure() + with: + name: detox-artifacts + path: .detoxArtifacts