forked from react-native-webview/react-native-webview
-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (31 loc) · 1.09 KB
/
ios-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: iOS
on: [push, pull_request]
jobs:
build:
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: 16
- name: Cache /node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install npm dependencies
run: yarn --frozen-lockfile
- name: Install Pods
run: pod install
working-directory: example/ios
- name: Build iOS test app
run: |
device_name='iPhone 13'
device=$(xcrun simctl list devices "${device_name}" available | grep "${device_name} (")
re='\(([-0-9A-Fa-f]+)\)'
[[ $device =~ $re ]] || exit 1
xcodebuild -workspace WebviewExample.xcworkspace -scheme ReactTestApp -destination "platform=iOS Simulator,id=${BASH_REMATCH[1]}" CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO build
working-directory: example/ios
timeout-minutes: 60