44 pull_request :
55 branches :
66 - ' master'
7+ push :
8+ branches :
9+ - ' master'
710
811jobs :
9- e2e-test :
10- name : E2E iOS test
11- runs-on : macOS-latest
12- timeout-minutes : 35
12+ e2e-ios :
13+ runs-on : macos-12
14+ timeout-minutes : 120
1315
1416 steps :
15- - name : Check out Git repository
16- uses : actions/checkout@v2
17+ - name : Checkout
18+ uses : actions/checkout@v3
19+ with :
20+ fetch-depth : 1
1721
18- - name : Set up Node.js
19- uses : actions/setup-node@v1
22+ - name : Node
23+ uses : actions/setup-node@v3
2024 with :
21- node-version : 14
25+ node-version : 16
26+ cache : ' yarn' # cache packages, but not node_modules
27+ cache-dependency-path : ' example/yarn.lock'
2228
2329 - name : Cache lib node modules
2430 uses : actions/cache@v3
@@ -38,20 +44,25 @@ jobs:
3844
3945 - name : Cache app node modules
4046 uses : actions/cache@v3
41- id : app-npmcache
47+ id : cache-nm
4248 with :
4349 path : example/node_modules
4450 key : node-modules-${{ hashFiles('**/yarn.lock') }}
4551
4652 - name : Rebuild detox
47- if : steps.app-npmcache .outputs.cache-hit == 'true'
53+ if : steps.cache-nm .outputs.cache-hit == 'true'
4854 working-directory : example
4955 run : yarn detox clean-framework-cache && yarn detox build-framework-cache
5056
51- - name : Install app dependencies
52- if : steps.app-npmcache .outputs.cache-hit != 'true'
57+ - name : Install Dependencies
58+ if : steps.cache-nm .outputs.cache-hit != 'true'
5359 working-directory : example
54- run : yarn install
60+ run : yarn install && yarn rn-setup
61+
62+ # - name: Activate react-native-skia-stup
63+ # run: |
64+ # yarn add @shopify/react-native-skia@0.1.156 git+ssh://git@github.com/limpbrains/react-native-skia-stub
65+ # patch -p1 < .github/workflows/react-native-skia-stub.patch
5566
5667 - name : Cache Pods
5768 uses : actions/cache@v3
@@ -60,19 +71,27 @@ jobs:
6071 path : example/ios/Pods
6172 key : pods-${{ hashFiles('**/Podfile.lock') }}
6273
63- - name : Install pods and rn-nodify
74+ - name : Install pods
6475 working-directory : example
6576 run : |
6677 gem update cocoapods xcodeproj
67- yarn rn-setup
78+ cd ios && pod install && cd ..
6879
69- - name : Install brew dependencies
70- run : brew tap wix/brew && brew install applesimutils
80+ - name : Install applesimutils
81+ run : |
82+ brew tap wix/brew
83+ brew install applesimutils
7184
72- - name : Build iOS app
85+ - name : Build
7386 working-directory : example
74- run : yarn e2e:ios-build
87+ run : yarn e2e:build: ios-release
7588
7689 - name : Test iOS app
7790 working-directory : example
78- run : sh ../.github/scripts/test-ios.sh
91+ run : yarn e2e:test:ios-release || yarn e2e:test:ios-release || yarn e2e:test:ios-release
92+
93+ - uses : actions/upload-artifact@v3
94+ if : failure()
95+ with :
96+ name : e2e-test-videos
97+ path : ./example/artifacts/
0 commit comments