Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
natsuk4ze committed Mar 28, 2024
1 parent 7b83e23 commit 7544e12
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ jobs:
android:
needs: set-up
timeout-minutes: 60
runs-on: macos-latest
runs-on: macos-13
strategy:
matrix:
api-level: [34,33,32,31,30,29,28,27,26,25,24,23]
# Api 33 is [currently not available on the macos-13 runner](https://github.com/ReactiveCircus/android-emulator-runner/issues/340)
api-level: [34,32,31,30,29,28,27,26,25,24,23]
fail-fast: false
steps:
- name: Check out
Expand Down Expand Up @@ -93,6 +94,8 @@ jobs:
key: avd-${{ matrix.api-level }}

- name: Run Integration Tests
id: Run-Integration-Tests
continue-on-error: true
timeout-minutes: 20
uses: reactivecircus/android-emulator-runner@v2
with:
Expand All @@ -103,4 +106,38 @@ jobs:
disable-spellchecker: true
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -camera-front none
script: flutter test integration_test/integration_test.dart
script: flutter test integration_test/integration_test.dart

- name: Retry Integration Tests
id: Retry-Integration-Tests
if: steps.Run-Integration-Tests.outcome == 'failure'
continue-on-error: true
timeout-minutes: 20
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
working-directory: ./example
arch: x86_64
emulator-boot-timeout: 200
disable-spellchecker: true
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -camera-front none
script: |
flutter clean && flutter pub get
flutter test integration_test/integration_test.dart
- name: Re:Retry Integration Tests
if: steps.Retry-integration-tests.outcome == 'failure'
timeout-minutes: 20
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
working-directory: ./example
arch: x86_64
emulator-boot-timeout: 200
disable-spellchecker: true
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -camera-front none
script: |
flutter clean && flutter pub get
flutter test integration_test/integration_test.dart

0 comments on commit 7544e12

Please sign in to comment.