Skip to content

Commit 5cc415f

Browse files
committed
Update iOS CI workflow to run integration tests
Replaces the iOS build step with a Flutter integration test run using the simulator's UDID. Adds a step to display the simulator UDID and ensures dependencies are fetched for Linux tests.
1 parent b299db5 commit 5cc415f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,23 @@ jobs:
5757
cache: true
5858

5959
- name: Launch iOS Simulator
60+
id: ios-sim
6061
uses: futureware-tech/simulator-action@v4
6162
with:
6263
model: 'iPhone 16'
6364
shutdown_after_job: true
6465
wait_for_boot: true
6566

67+
- name: Show simulator UDID
68+
run: echo "Simulator UDID is ${{ steps.ios-sim.outputs.udid }}"
69+
6670
- name: Build iOS
6771
shell: bash
6872
working-directory: "src/serious_python/example/flet_example"
6973
run: |
7074
flutter devices
7175
dart run serious_python:main package app/src -p iOS -r flet
72-
flutter build ios --no-codesign
76+
flutter drive -d ${{ steps.ios-sim.outputs.udid }} --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart
7377
7478
android:
7579
name: Test on Android
@@ -215,6 +219,7 @@ jobs:
215219
shell: bash
216220
working-directory: "src/serious_python/example/flet_example"
217221
run: |
222+
flutter pub get
218223
dart run serious_python:main package app/src -p Linux -r flet
219224
xvfb-run flutter test integration_test -d linux
220225

0 commit comments

Comments
 (0)