Skip to content

Commit

Permalink
add script to boot simulator in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeEgret committed Jul 31, 2023
1 parent ccb4c92 commit 42e2d4b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ios_e2e.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Get the UDID of an iPhone 11 simulator
UDID=$(xcrun simctl list devices | grep -m 1 'iPhone 14 (' | awk -F '[()]' '{print $2}')

# Boot the simulator
xcrun simctl boot $UDID

# Echo the UDID (for further use)
echo $UDID
17 changes: 17 additions & 0 deletions .github/workflows/ios_e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: E2E tests running in AWS Device Farm

on:
push:
branches: [main]
pull_request:
branches:
- main
- "**/main"

jobs:
e2e:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Run test
run: ./.github/workflows/ios_e2e.sh

0 comments on commit 42e2d4b

Please sign in to comment.