fix: handle exceptions when FlutterEngine is suspended #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| ios-unit-tests: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: futureware-tech/simulator-action@v5 | |
| id: ios-simulator | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.29' | |
| cache: true | |
| - name: Set up iOS test project | |
| # --skip-tests sets up the CocoaPods workspace (downloads all deps, generates | |
| # the ably_flutter-Unit-Tests scheme) without booting a simulator | |
| run: | | |
| cd ios | |
| pod lib lint ably_flutter.podspec \ | |
| --allow-warnings \ | |
| --skip-tests \ | |
| --validation-dir=/tmp/ably_test_build \ | |
| --no-clean | |
| - name: Run iOS unit tests | |
| timeout-minutes: 30 | |
| run: | | |
| xcodebuild test \ | |
| -workspace /tmp/ably_test_build/App.xcworkspace \ | |
| -scheme ably_flutter-Unit-Tests \ | |
| -destination 'id=${{ steps.ios-simulator.outputs.udid }}' \ | |
| CODE_SIGNING_ALLOWED=NO |