-
Notifications
You must be signed in to change notification settings - Fork 23
61 lines (51 loc) · 1.5 KB
/
pr_ios.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build iOS on PRs
on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize]
jobs:
build:
strategy:
matrix:
xcode_version: [ '15.2' ]
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Select Xcode ${{ matrix.xcode_version }}
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode_version }} # Check versions: https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Cache CocoaPods
uses: actions/cache@v4
with:
path: e2e/ios/Pods
key: pods-${{ runner.os }}-${{ hashFiles('Podfile.lock') }}
restore-keys: |
pods-${{ runner.os }}-
- name: Run patch scripts
working-directory: e2e
run: bash ./scripts/patch_ios_podspec.sh
- name: Run npm install
run: |
npm i -g corepack
npm ci
cd e2e
npm ci
- name: Run pod install & update dependencies
working-directory: e2e/ios
run: |
pod update
- name: Start iOS simulator
uses: futureware-tech/simulator-action@v3
with:
model: 'iPhone 14'
os_version: '>=16.0'
- name: Run e2e tests
working-directory: e2e
run: npm run test:e2e:ios