Skip to content

[ECO-5020] fix: update AGP plugin #2059

[ECO-5020] fix: update AGP plugin

[ECO-5020] fix: update AGP plugin #2059

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
ios:
strategy:
matrix:
device: # Device names must be shown in `xcrun simctl list devices`
- 'iPhone 15' # we are not specifying the iOS version as it tends to change
fail-fast: false
runs-on: macos-latest
steps:
- name: 'List Simulators'
run: 'xcrun simctl list devices'
- name: 'Start Simulator'
run: xcrun simctl boot "${{ matrix.device }}"
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.24'
cache: true
# test_integration package depends on ably_flutter, so before we run integration
# tests it's best to perform dependency update in both packages, to make sure that
# integration tests are run with exactly the same dependencies as specified in
# current version of ably_flutter package
- name: 'Run Flutter Driver tests'
timeout-minutes: 30
run: |
flutter pub get
cd test_integration && ./run_integration_tests.sh
android:
runs-on: ubuntu-latest
strategy:
matrix:
api-level: [24, 29]
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v4
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.24'
cache: true
- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: 'Run Flutter Driver tests'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: |
flutter pub get
cd test_integration && ./run_integration_tests.sh