Skip to content

Commit

Permalink
ci: fix iOS and Windows integration test failures (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryConrad authored Mar 4, 2024
1 parent d8e31af commit fe1faff
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fe1faff

Please sign in to comment.