From fe1faff480fd457331ddd038d4ef109884712e88 Mon Sep 17 00:00:00 2001 From: Gregory Conrad Date: Mon, 4 Mar 2024 13:26:38 -0500 Subject: [PATCH] ci: fix iOS and Windows integration test failures (#303) --- .github/workflows/build.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 678d59e..7d48314 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,7 +82,8 @@ jobs: toolchain: stable - name: Build the binaries - run: melos run build:other + run: dart pub global run melos run build:other + shell: bash - name: Copy the binaries to the needed location shell: bash run: | @@ -122,7 +123,7 @@ jobs: run: flutter test -d linux integration_test ios_integration_test: - runs-on: macos-13 # TODO switch to macos-latest when it doesn't error out + runs-on: macos-latest steps: - uses: actions/checkout@v3 @@ -131,12 +132,11 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable - - - name: Start iOS Simulator - run: | - DEVICE_ID=$(xcrun xctrace list devices | grep iPhone | head -1 | awk '{print $NF}' | tr -d '()') - echo "DEVICE_ID=$DEVICE_ID" >> $GITHUB_ENV - xcrun simctl boot $DEVICE_ID + - uses: futureware-tech/simulator-action@v3 + id: start_simulator + name: Start iOS Simulator + with: + model: 'iPhone 14' - name: Build the XCFramework run: melos run build:apple @@ -148,7 +148,7 @@ jobs: - name: Run Flutter integration tests working-directory: packages/flutter_mimir/example - run: flutter test -d ${{ env.DEVICE_ID }} integration_test + run: flutter test -d ${{ steps.start_simulator.outputs.udid }} integration_test android_integration_test: runs-on: macos-latest