From 83e59166d61cacfcdd50fcdd8d74708aa24e3549 Mon Sep 17 00:00:00 2001 From: Juan P Lopez Date: Tue, 10 Dec 2024 12:24:37 -0500 Subject: [PATCH] fix: add docker --- .github/workflows/e2e-ios.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/e2e-ios.yml b/.github/workflows/e2e-ios.yml index e2d0dde0fd..d29c15e15c 100644 --- a/.github/workflows/e2e-ios.yml +++ b/.github/workflows/e2e-ios.yml @@ -10,7 +10,7 @@ concurrency: jobs: e2e-test: - runs-on: macos-latest + runs-on: macos-13 steps: - uses: actions/checkout@v4 @@ -23,13 +23,8 @@ jobs: - name: List available simulators run: xcrun simctl list devices available - - name: Create iOS Simulator - run: | - DEVICE_ID=$(xcrun simctl create "iPhone SE (3rd generation)" com.apple.CoreSimulator.SimDeviceType.iPhone-SE-3rd-generation com.apple.CoreSimulator.SimRuntime.iOS-18-1) - echo "DEVICE_ID=$DEVICE_ID" >> $GITHUB_ENV - - - name: Boot Simulator - run: xcrun simctl boot $DEVICE_ID + - name: Set up Docker + uses: douglascamata/setup-docker-macos-action@v1-alpha - name: Install dependencies run: nix develop -c yarn install @@ -37,6 +32,14 @@ jobs: - name: Build E2E tests run: nix develop -c yarn e2e:build ios.sim.debug + - name: Create iOS Simulator + run: | + DEVICE_ID=$(xcrun simctl create "iPhone SE (3rd generation)" com.apple.CoreSimulator.SimDeviceType.iPhone-SE-3rd-generation com.apple.CoreSimulator.SimRuntime.iOS-17-2) + echo "DEVICE_ID=$DEVICE_ID" >> $GITHUB_ENV + + - name: Boot Simulator + run: xcrun simctl boot $DEVICE_ID + - name: Start Metro, Tilt, Emulator, and run tests id: run-tests run: |