-
Notifications
You must be signed in to change notification settings - Fork 18
85 lines (70 loc) · 1.95 KB
/
build-ios-checks.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Check iOS Build
on:
pull_request:
branches: ['develop', 'master']
types: ['opened', 'reopened', 'synchronize']
jobs:
build:
name: Check iOS Build
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Setup Ruby
uses: ruby/setup-ruby@v1
- name: Setup CocoaPods
uses: maxim-lobanov/setup-cocoapods@v1
with:
version: 1.15.2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install node_modules
env:
HUSKY: 0
run: |
npm run setup:ci
- name: Restore Pods cache
uses: actions/cache@v4
with:
path: |
apps/example/ios/Pods
~/Library/Caches/CocoaPods
~/.cocoapods
key: ${{ runner.os }}-pods-${{ hashFiles('apps/example/ios/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install Pods
run: |
cd apps/example/ios && \
pod install --repo-update && \
cd .. && \
cd .. && \
cd ..
- name: Bundle apps
run: |
npm run bundle:ci
- name: Add GoogleService-Info.plist
run: |
pwd
echo '${{secrets.GOOGLESERVICE_INFO_PLIST_FILE}}' > apps/example/ios/GoogleService-Info.plist
echo "$( < apps/example/ios/GoogleService-Info.plist)"
cd apps/example/ios
ls -li
- name: Xcode Version
run: |
xcode-select -p
/usr/bin/xcodebuild -version
- name: Execute iOS build check
run: |
npm run build:ios:ci