diff --git a/.cirrus.yml b/.cirrus.yml deleted file mode 100644 index 4cd0458..0000000 --- a/.cirrus.yml +++ /dev/null @@ -1,40 +0,0 @@ -environment: - # The flutter sdk is located in /Users/admin/flutter by default in cirrus cis - MACOS_HOST_FLUTTER_SDK_DIR: /Users/admin/flutter - -default_filters: &default_filters - skip: $CIRRUS_REPO_OWNER != 'AgoraIO-Extensions' || $CIRRUS_PR == '' || $CIRRUS_PR_LABELS =~ '.*ci:skip.*' - -default_macos_container: &default_macos_container - macos_instance: - image: ghcr.io/cirruslabs/macos-ventura-xcode:14 - -android_build_task: - <<: *default_macos_container - - skip: $CIRRUS_REPO_OWNER != 'AgoraIO-Extensions' || $CIRRUS_PR_LABELS =~ '.*ci:skip.*' - - matrix: - - name: FLUTTER_VERSION 3.10.0 - env: - FLUTTER_VERSION: 3.10.0 - switch_flutter_version_script: - - cd ${MACOS_HOST_FLUTTER_SDK_DIR} - - git fetch - - git checkout ${FLUTTER_VERSION} && flutter precache - - matrix: - - name: Build android on macos arm - build_android_arm64_script: - - cd example - - flutter doctor -v - - flutter packages get - - flutter build apk - - - name: Build ios on macos arm - build_android_arm64_script: - - cd example - - flutter doctor -v - - flutter clean - - flutter packages get - - flutter build ios --no-codesign \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3c3cd3e..b67f709 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -248,7 +248,7 @@ jobs: - uses: actions/checkout@v1 - uses: subosito/flutter-action@v2 with: - flutter-version: '3.10.0' # Run the latest version + flutter-version: '3.13.0' # Run the latest version cache: true - uses: futureware-tech/simulator-action@v2 with: @@ -257,11 +257,31 @@ jobs: run: | flutter packages get + flutter test integration_test/iris_event_smoke_test.dart -d "iPhone 14 Pro Max" --verbose + flutter test integration_test/iris_method_channel_smoke_test.dart -d "iPhone 14 Pro Max" --verbose + working-directory: example + + integration_test_ios_use_frameworks: + name: ios integration test with use_frameworks + if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }} + runs-on: macos-13 + timeout-minutes: 60 + steps: + - uses: actions/checkout@v1 + - uses: subosito/flutter-action@v2 + with: + flutter-version: '3.10.0' # Run the latest version + cache: true + - uses: futureware-tech/simulator-action@v2 + with: + model: 'iPhone 14 Pro Max' + - name: ios integration test + run: | export USE_FRAMEWORKS=true - flutter test integration_test - unset USE_FRAMEWORKS - flutter test integration_test + flutter packages get + flutter test integration_test/iris_event_smoke_test.dart -d "iPhone 14 Pro Max" --verbose + flutter test integration_test/iris_method_channel_smoke_test.dart -d "iPhone 14 Pro Max" --verbose working-directory: example integration_test_macos: diff --git a/example/integration_test/iris_event_smoke_test.dart b/example/integration_test/iris_event_smoke_test.dart index 3acafb2..04f2917 100644 --- a/example/integration_test/iris_event_smoke_test.dart +++ b/example/integration_test/iris_event_smoke_test.dart @@ -21,6 +21,6 @@ void main() { irisEvent.onEventPtr; irisEvent.dispose(); }, - timeout: const Timeout(Duration(minutes: 10)), + timeout: const Timeout(Duration(minutes: 30)), ); } diff --git a/example/ios/Podfile b/example/ios/Podfile index 833cb71..5380288 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -32,9 +32,10 @@ target 'Runner' do # test the `use_frameworks!` and not use `use_frameworks!` case if ENV['USE_FRAMEWORKS'] == "true" use_frameworks! - use_modular_headers! end + use_modular_headers! + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end