Skip to content

Commit

Permalink
fix: add docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi committed Dec 10, 2024
1 parent 0d776b3 commit 83e5916
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/e2e-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:

jobs:
e2e-test:
runs-on: macos-latest
runs-on: macos-13
steps:
- uses: actions/checkout@v4

Expand All @@ -23,20 +23,23 @@ 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

- 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: |
Expand Down

0 comments on commit 83e5916

Please sign in to comment.