-
Notifications
You must be signed in to change notification settings - Fork 33
74 lines (62 loc) · 2 KB
/
e2e.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
# .github/workflows/e2e-ios.yml
name: e2e-ios
on: push
jobs:
e2e-ios:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
- name: Install macOS dependencies
run: |
brew tap wix/brew
brew install applesimutils
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.6.10
- name: Example App Yarn install
run: |
cd example
yarn install --frozen-lockfile
cd ..
- name: Cache CocoaPods
id: cache-cocoapods
uses: actions/cache@v3
with:
path: example/ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('example/ios/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install CocoaPods
if: steps.cache-cocoapods.outputs.cache-hit != 'true'
run: cd example/ios ; pod install ; cd -
- name: Detox rebuild framework cache
run: cd example ; yarn detox rebuild-framework-cache ; cd -
- name: Cache Detox build
id: cache-detox-build
uses: actions/cache@v3
with:
path: example/ios/build
key: ${{ runner.os }}-detox-build
restore-keys: |
${{ runner.os }}-detox-build
- name: Detox build
run: cd example ; yarn detox build --configuration ios.sim.release ; cd -
- name: Detox test
env:
ITBL_API_KEY: ${{secrets.ITERABLE_API_KEY}}
ITBL_ID: ${{secrets.ITBL_ID}}
run: cd example ; yarn detox test --configuration ios.sim.release --cleanup --headless --record-logs all ; cd -
- name: Upload artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: detox-artifacts
path: example/artifacts