ci: prune unavailable simulators before running tests
Shared macOS runner accumulates orphaned simulator entries (registry present, data dir missing on disk) which fail run_tests with 'Unable to boot device because it cannot be located on disk'. Clean up before every test run instead of requiring manual simctl intervention.
This commit is contained in:
@@ -19,5 +19,8 @@ jobs:
|
|||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/archive/${{ github.sha }}.tar.gz"
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/archive/${{ github.sha }}.tar.gz"
|
||||||
tar -xzf /tmp/repo.tar.gz --strip-components=1 -C "$GITHUB_WORKSPACE"
|
tar -xzf /tmp/repo.tar.gz --strip-components=1 -C "$GITHUB_WORKSPACE"
|
||||||
|
|
||||||
|
- name: Prune orphaned simulators (shared runner, avoids stale-UDID boot failures)
|
||||||
|
run: xcrun simctl delete unavailable || true
|
||||||
|
|
||||||
- name: Run tests with coverage
|
- name: Run tests with coverage
|
||||||
run: fastlane tests
|
run: fastlane tests
|
||||||
|
|||||||
Reference in New Issue
Block a user