Skip to content

Commit 522123f

Browse files
CopilotABausG
andauthored
ci: Update Emulators for Integration Tests (#363)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ABausG <7288963+ABausG@users.noreply.github.com> Co-authored-by: Anton Borries <anton.borries@gmail.com>
1 parent ba572ca commit 522123f

2 files changed

Lines changed: 21 additions & 9 deletions

File tree

.github/workflows/flutter-beta.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,28 +75,34 @@ jobs:
7575
- name: Run Android Integration Tests
7676
uses: reactivecircus/android-emulator-runner@v2
7777
with:
78-
api-level: 29
78+
api-level: 33
79+
arch: x86_64
80+
profile: Nexus 6
81+
sdcard-path-or-size: 100M
82+
emulator-boot-timeout: 900
83+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
7984
script: flutter test integration_test/android_test.dart -d emulator-5554
8085
working-directory: packages/home_widget/example
8186

8287
# iOS Test based on https://medium.com/flutter-community/run-flutter-driver-tests-on-github-actions-13c639c7e4ab
8388
# by @kate_sheremet
8489
ios:
8590
name: iOS Integration Tests
91+
timeout-minutes: 30
8692
strategy:
8793
matrix:
8894
device:
89-
- "iPhone 14"
95+
- "iPhone 16"
9096
fail-fast: false
91-
runs-on: macos-14
97+
runs-on: macos-15
9298
defaults:
9399
run:
94100
working-directory: packages/home_widget/example
95101
steps:
96102
- uses: actions/checkout@v2
97103
- uses: maxim-lobanov/setup-xcode@v1
98104
with:
99-
xcode-version: latest
105+
xcode-version: latest-stable
100106
- uses: subosito/flutter-action@v1
101107
with:
102108
channel: beta
@@ -106,4 +112,4 @@ jobs:
106112
with:
107113
model: ${{ matrix.device }}
108114
- name: "Run iOS integration tests"
109-
run: flutter test integration_test/ios_test.dart -d ${{steps.simulator.outputs.udid}}
115+
run: flutter test integration_test/ios_test.dart -d ${{steps.simulator.outputs.udid}} --ignore-timeouts

.github/workflows/main.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ jobs:
7777
- name: Run Android Integration Tests
7878
uses: reactivecircus/android-emulator-runner@v2
7979
with:
80-
api-level: 29
80+
api-level: 33
81+
arch: x86_64
82+
profile: Nexus 6
83+
sdcard-path-or-size: 100M
84+
emulator-boot-timeout: 900
85+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
8186
script: flutter test integration_test/android_test.dart -d emulator-5554
8287
working-directory: packages/home_widget/example
8388

@@ -88,17 +93,18 @@ jobs:
8893
strategy:
8994
matrix:
9095
device:
91-
- "iPhone 15"
96+
- "iPhone 16"
9297
fail-fast: false
9398
runs-on: macos-15
99+
timeout-minutes: 30
94100
defaults:
95101
run:
96102
working-directory: packages/home_widget/example
97103
steps:
98104
- uses: actions/checkout@v2
99105
- uses: maxim-lobanov/setup-xcode@v1
100106
with:
101-
xcode-version: latest
107+
xcode-version: latest-stable
102108
- uses: subosito/flutter-action@v1
103109
with:
104110
channel: stable
@@ -108,4 +114,4 @@ jobs:
108114
with:
109115
model: ${{ matrix.device }}
110116
- name: "Run iOS integration tests"
111-
run: flutter test integration_test/ios_test.dart -d ${{steps.simulator.outputs.udid}}
117+
run: flutter test integration_test/ios_test.dart -d ${{steps.simulator.outputs.udid}} --ignore-timeouts

0 commit comments

Comments
 (0)