diff --git a/.github/workflows/ios-e2e-test.yml b/.github/workflows/ios-e2e-test.yml index 9a08a9c783..c58ba1a5f6 100644 --- a/.github/workflows/ios-e2e-test.yml +++ b/.github/workflows/ios-e2e-test.yml @@ -2,7 +2,7 @@ name: Test iOS e2e on: pull_request: paths: - - 'Example/**' + - 'Example/**' push: branches: - master @@ -42,3 +42,8 @@ jobs: - name: Test app working-directory: ${{ env.WORKING_DIRECTORY }} run: yarn test-e2e-ios + - uses: actions/upload-artifact@v2 + if: ${{ failure() }} + with: + name: ios-fail-screen-shoots + path: ${{ env.WORKING_DIRECTORY }}/artifacts diff --git a/Example/package.json b/Example/package.json index bc6a2ceb45..837d2bae37 100644 --- a/Example/package.json +++ b/Example/package.json @@ -11,7 +11,7 @@ "check-types": "tsc --noEmit", "build-e2e-ios": "detox build --configuration ios.release", "build-e2e-android": "detox build --configuration android.release", - "test-e2e-ios": "detox test --configuration ios.release", + "test-e2e-ios": "detox test --configuration ios.release --take-screenshots failing", "test-e2e-android": "detox test --configuration android.release --take-screenshots failing" }, "dependencies": {