Skip to content

Commit 087c385

Browse files
committed
Startup metro server for duration of e2e test
Update e2e-ios.yml
1 parent 46df94c commit 087c385

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/scripts/test-ios.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -eo pipefail
4+
5+
#Start metro server
6+
yarn start &
7+
P1=$!
8+
#perform tests
9+
yarn e2e:ios-test &
10+
P2=$!
11+
#wait for tests to finish
12+
wait $P2
13+
#kill metro server
14+
kill $P1

.github/workflows/e2e-ios.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
5151
gem update cocoapods xcodeproj
5252
yarn ios:pods
5353
54-
- run: brew tap wix/brew
55-
- run: brew install applesimutils
56-
- run: yarn e2e:ios-build && yarn e2e:ios-test
54+
- name: Install brew dependencies
55+
run: brew tap wix/brew && brew install applesimutils
56+
57+
- name: Build iOS app
58+
run: yarn e2e:ios-build
59+
60+
- name: Test iOS app
61+
run: sh ../.github/scripts/test-ios.sh

0 commit comments

Comments
 (0)