Skip to content

Commit

Permalink
fix: restart iOS Simulator before every test run
Browse files Browse the repository at this point in the history
  • Loading branch information
limpbrains committed Oct 7, 2024
1 parent eedeb8f commit 156b059
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/e2e-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ jobs:
run: |
while ! nc -z '127.0.0.1' 60001; do sleep 1; done
while ! nc -z '127.0.0.1' 10009; do sleep 1; done
sleep 5
sudo chmod -R 777 docker/lnd
- name: Test attempt 1
Expand Down Expand Up @@ -173,9 +174,11 @@ jobs:

- name: Restart docker before last attempt
if: steps.test1.outcome != 'success' && steps.test2.outcome != 'success' && steps.test3.outcome != 'success'
timeout-minutes: 10
run: |
cd docker && docker compose down -t 60 && docker compose up --quiet-pull -d && cd ..
while ! nc -z '127.0.0.1' 60001; do sleep 1; done
sleep 5
sudo chmod -R 777 docker/lnd
- name: Test attempt 4
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/e2e-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,15 @@ jobs:
continue-on-error: true
id: test2
if: steps.test1.outcome != 'success'
run: yarn e2e:test:ios-release --record-videos all --take-screenshots all --record-logs all --cleanup
run: xcrun simctl shutdown all
yarn e2e:test:ios-release --record-videos all --take-screenshots all --record-logs all --cleanup

- name: Test attempt 3
continue-on-error: true
id: test3
if: steps.test1.outcome != 'success' && steps.test2.outcome != 'success'
run: yarn e2e:test:ios-release --record-videos all --take-screenshots all --record-logs all --cleanup
run: xcrun simctl shutdown all
yarn e2e:test:ios-release --record-videos all --take-screenshots all --record-logs all --cleanup

- name: Restart docker before last attempt
if: steps.test1.outcome != 'success' && steps.test2.outcome != 'success' && steps.test3.outcome != 'success'
Expand All @@ -100,7 +102,8 @@ jobs:
- name: Test attempt 4
id: test4
if: steps.test1.outcome != 'success' && steps.test2.outcome != 'success' && steps.test3.outcome != 'success'
run: yarn e2e:test:ios-release --record-videos all --take-screenshots all --record-logs all --cleanup
run: xcrun simctl shutdown all
yarn e2e:test:ios-release --record-videos all --take-screenshots all --record-logs all --cleanup

- uses: actions/upload-artifact@v4
if: failure()
Expand Down

0 comments on commit 156b059

Please sign in to comment.