Skip to content

Commit

Permalink
fix: run detox with --cleanup option on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
limpbrains committed Apr 26, 2024
1 parent cce86b1 commit b27903d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/e2e-ios-macmini.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ jobs:
- name: Test attempt 1
continue-on-error: true
id: test1
run: yarn e2e:test:ios-release --record-videos all --take-screenshots all --record-logs all
run: yarn e2e:test:ios-release --record-videos all --take-screenshots all --record-logs all --cleanup

- name: Test attempt 2
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
run: 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
run: 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 @@ -87,7 +87,7 @@ 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
run: yarn e2e:test:ios-release --record-videos all --take-screenshots all --record-logs all --cleanup

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

0 comments on commit b27903d

Please sign in to comment.