Skip to content

Commit e6fd007

Browse files
committed
Preserve Android E2E state after timeouts
1 parent 1ce6217 commit e6fd007

3 files changed

Lines changed: 16 additions & 13 deletions

File tree

.github/actions/maestro-android/action.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ inputs:
3030
required: false
3131
default: /tmp/maestro-android-state/results.json
3232
description: The path used to persist per-flow test results between retries
33-
test-state-artifact-name:
34-
required: true
35-
description: The artifact used to pass per-flow test results to retry jobs
3633

3734
runs:
3835
using: composite
@@ -88,14 +85,6 @@ runs:
8885
path: |
8986
report.xml
9087
screen.mp4
91-
- name: Store per-flow test state
92-
uses: actions/upload-artifact@v6
93-
if: always()
94-
with:
95-
name: ${{ inputs.test-state-artifact-name }}
96-
overwrite: true
97-
if-no-files-found: warn
98-
path: ${{ inputs.test-state-path }}
9988
- name: Store Logs
10089
if: steps.run-tests.outcome == 'failure'
10190
uses: actions/upload-artifact@v6

.github/workflows/e2e-android-rntester.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,14 @@ jobs:
5757
app-id: com.facebook.react.uiapp
5858
maestro-flow: ./packages/rn-tester/.maestro
5959
flavor: ${{ matrix.flavor }}
60-
test-state-artifact-name: e2e_android_rntester_state_${{ matrix.flavor }}_x86_NewArch
60+
- name: Store per-flow test state
61+
if: always()
62+
uses: actions/upload-artifact@v6
63+
with:
64+
name: e2e_android_rntester_state_${{ matrix.flavor }}_x86_NewArch
65+
overwrite: true
66+
if-no-files-found: warn
67+
path: /tmp/maestro-android-state/results.json
6168
- name: Report status
6269
id: report-status
6370
if: ${{ always() && steps.run-tests.outcome == 'failure' }}

.github/workflows/e2e-android-templateapp.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,14 @@ jobs:
9595
install-java: 'false'
9696
flavor: ${{ matrix.flavor }}
9797
working-directory: /tmp/RNTestProject
98-
test-state-artifact-name: e2e_android_templateapp_state_${{ matrix.flavor }}_x86_NewArch
98+
- name: Store per-flow test state
99+
if: always()
100+
uses: actions/upload-artifact@v6
101+
with:
102+
name: e2e_android_templateapp_state_${{ matrix.flavor }}_x86_NewArch
103+
overwrite: true
104+
if-no-files-found: warn
105+
path: /tmp/maestro-android-state/results.json
99106
- name: Report status
100107
id: report-status
101108
if: ${{ always() && steps.run-tests.outcome == 'failure' }}

0 commit comments

Comments
 (0)