Skip to content

Release/1.2.44

Release/1.2.44 #6

Workflow file for this run

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