Merge pull request #595 from ably/ECO-5703/fix-errors-because-of-flut… #3
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 |