-
Notifications
You must be signed in to change notification settings - Fork 33
70 lines (54 loc) · 1.42 KB
/
e2e_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
61
62
63
64
65
66
67
68
69
name: E2E (iOS)
on:
push:
branches:
- release
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
jobs:
build:
name: E2E (iOS)
runs-on: macos-11
steps:
- uses: actions/checkout@v1
- name: Setup secret files
env:
APP_ENV: ${{ secrets.APP_ENV }}
run: |
echo $APP_ENV > '.env'
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: '12'
- name: Cache node modules
uses: actions/cache@v1
id: cache
with:
path: node_modules
key: node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Yarn Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
- name: Get xcode 13
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 12.5.1
- name: Cache Pods
uses: actions/cache@v1
id: podcache
with:
path: ios/Pods
key: pods-${{ hashFiles('**/Podfile.lock') }}
- name: Install Pod Dependencies
run: cd ./ios && pod install && cd ..
- name: Install Detox Dependencies
run: |
brew tap wix/brew
brew install applesimutils
- name: Rebuild detox
# if: steps.cache.outputs.cache-hit == 'true'
run: yarn detox-setup
- name: Run Detox Build
run: yarn e2e:build ios.release
- name: Run Detox Test(s)
run: yarn e2e:test ios.release --cleanup