diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2701f58c..d4aeab96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,7 +93,9 @@ jobs: android: runs-on: macos-latest + timeout-minutes: 30 strategy: + max-parallel: 3 matrix: api-level: [31,30,29,28,27,26,25,24] target: [default] @@ -131,7 +133,7 @@ jobs: ${{ runner.os }}-pub- - name: Install Flutter dependencies - run: flutter --disable-telemetry && flutter pub get ./example + run: flutter --disable-telemetry && flutter pub get ./example # More info on https://github.com/ReactiveCircus/android-emulator-runner - name: Run integration tests @@ -139,7 +141,8 @@ jobs: with: api-level: ${{ matrix.api-level }} arch: x86_64 - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim + emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none + disable-animations: false working-directory: ./example script: | echo ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL=600 >> $GITHUB_ENV diff --git a/example/integration_test/integration_test.dart b/example/integration_test/integration_test.dart index 3737d41d..3114f75f 100644 --- a/example/integration_test/integration_test.dart +++ b/example/integration_test/integration_test.dart @@ -9,6 +9,8 @@ import '../lib/main.dart' as app; /// All tests are done in integration tests, /// since only integration tests can call native code. +// ignore: invalid_annotation_target +@Timeout(Duration(hours: 2)) void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); Platform.isAndroid