Skip to content

Commit f717317

Browse files
authored
Merge pull request #407 from synonymdev/e2e-retry-mechanism
E2E retry mechanism
2 parents 867f43e + 7e3b5cf commit f717317

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

.github/workflows/e2e.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ jobs:
136136
sudo bash -c "while [ ! -f docker/lnd/data/chain/bitcoin/regtest/admin.macaroon ]; do sleep 1; done"
137137
sudo chmod -R 777 docker/lnd
138138
139-
- name: Run E2E Tests (${{ matrix.shard.name }})
139+
- name: Run E2E Tests 1 (${{ matrix.shard.name }})
140+
continue-on-error: true
141+
id: test1
140142
uses: reactivecircus/android-emulator-runner@v2
141143
with:
142144
profile: pixel_6
@@ -148,6 +150,40 @@ jobs:
148150
script: cd bitkit-e2e-tests && ./ci_run_android.sh --mochaOpts.grep "${{ matrix.shard.grep }}"
149151
env:
150152
RECORD_VIDEO: true
153+
ATTEMPT: 1
154+
155+
- name: Run E2E Tests 2 (${{ matrix.shard.name }})
156+
continue-on-error: true
157+
id: test2
158+
if: steps.test1.outcome != 'success'
159+
uses: reactivecircus/android-emulator-runner@v2
160+
with:
161+
profile: pixel_6
162+
api-level: 33
163+
arch: x86_64
164+
avd-name: Pixel_6
165+
force-avd-creation: false
166+
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-front none
167+
script: cd bitkit-e2e-tests && ./ci_run_android.sh --mochaOpts.grep "${{ matrix.shard.grep }}"
168+
env:
169+
RECORD_VIDEO: true
170+
ATTEMPT: 2
171+
172+
- name: Run E2E Tests 3 (${{ matrix.shard.name }})
173+
id: test3
174+
if: steps.test1.outcome != 'success' && steps.test2.outcome != 'success'
175+
uses: reactivecircus/android-emulator-runner@v2
176+
with:
177+
profile: pixel_6
178+
api-level: 33
179+
arch: x86_64
180+
avd-name: Pixel_6
181+
force-avd-creation: false
182+
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-front none
183+
script: cd bitkit-e2e-tests && ./ci_run_android.sh --mochaOpts.grep "${{ matrix.shard.grep }}"
184+
env:
185+
RECORD_VIDEO: true
186+
ATTEMPT: 3
151187

152188
- name: Upload E2E Artifacts (${{ matrix.shard.name }})
153189
if: failure()

0 commit comments

Comments
 (0)