From 1d6cc13d7db9c3734e9cd2f0a5a6d8f1f7b0bfa7 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Tue, 12 Mar 2024 22:07:18 +0100 Subject: [PATCH] try running only on ios --- .github/workflows/run_integration_tests.yml | 40 +++++---------------- 1 file changed, 9 insertions(+), 31 deletions(-) diff --git a/.github/workflows/run_integration_tests.yml b/.github/workflows/run_integration_tests.yml index c304a9c..2d47586 100644 --- a/.github/workflows/run_integration_tests.yml +++ b/.github/workflows/run_integration_tests.yml @@ -13,11 +13,7 @@ jobs: run-integration-tests: name: Run integration tests timeout-minutes: 30 - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest] - runs-on: ${{ matrix.os }} + runs-on: macos-11 steps: - uses: actions/checkout@v3 with: @@ -44,35 +40,17 @@ jobs: flutter pub get flutter pub run intl_utils:generate flutter analyze lib --fatal-infos - if [ "${{ matrix.os }}" == "macos-13" ] - then - cd ios - pod install - cd .. - fi - - - name: Enable KVM - if: ${{ matrix.os == 'ubuntu-latest' }} - 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 - - - name: Launch Android simulator & Run tests - if: ${{ matrix.os == 'ubuntu-latest' }} - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 32 - target: default - arch: x86_64 - profile: pixel_6 - script: bash .github/scripts/run_integration_tests.sh - name: Launch iOS simulator uses: futureware-tech/simulator-action@v3 - if: ${{ matrix.os == 'macos-13' }} with: model: "iPhone 15 Pro" + - name: Run tests - if: ${{ matrix.os == 'macos-13' }} - run: bash .github/scripts/run_integration_tests.sh + run: | + flutter drive \ + --target=integration_test/e2e_test.dart \ + --driver=test_driver/integration_driver.dart \ + --flavor=dev \ + --no-dds \ + --dart-define cameraStubImage=assets/camera_stub_image.jpg