11name : mocha-ios
22
3+ env :
4+ NO_FLIPPER : 1
5+
36on :
47 pull_request :
58 branches :
1013
1114jobs :
1215 mocha-ios :
13- runs-on : macos-12
16+ runs-on : macos-13
1417 timeout-minutes : 120
1518
1619 steps :
1720 - name : Checkout
18- uses : actions/checkout@v3
21+ uses : actions/checkout@v4
1922 with :
2023 fetch-depth : 1
2124
@@ -31,15 +34,15 @@ jobs:
3134 if : steps.docker1.outcome != 'success'
3235 uses : douglascamata/setup-docker-macos-action@v1-alpha
3336 id : docker2
34- continue-on-error : true
37+ # continue-on-error: true
3538 with :
3639 lima : v0.18.0
3740 colima : v0.5.6
3841
39- - name : Setup Docker Default
40- if : steps.docker1.outcome != 'success' && steps.docker2.outcome != 'success'
41- uses : docker-practice/actions-setup-docker@1.0.12
42- timeout-minutes : 30
42+ # - name: Setup Docker Default
43+ # if: steps.docker1.outcome != 'success' && steps.docker2.outcome != 'success'
44+ # uses: docker-practice/actions-setup-docker@1.0.12
45+ # timeout-minutes: 30
4346
4447 - name : Install backup-server dependencies
4548 working-directory : backup-server
@@ -58,48 +61,26 @@ jobs:
5861 run : while ! nc -z '127.0.0.1' 60001; do sleep 1; done
5962
6063 - name : Node
61- uses : actions/setup-node@v3
64+ uses : actions/setup-node@v4
6265 with :
63- node-version : 18
66+ node-version : 20
6467 cache : ' yarn' # cache packages, but not node_modules
6568 cache-dependency-path : ' example/yarn.lock'
6669
67- - name : Cache lib node modules
68- uses : actions/cache@v3
69- id : lib-npmcache
70- with :
71- path : lib/node_modules
72- key : node-modules-${{ hashFiles('**/yarn.lock') }}
73-
7470 - name : Install lib dependencies
75- if : steps.lib-npmcache.outputs.cache-hit != 'true'
7671 working-directory : lib
77- run : yarn --no-audit --prefer-offline || yarn --no-audit --prefer-offline
72+ run : yarn || yarn
7873
7974 - name : Build lib
8075 working-directory : lib
8176 run : yarn build
8277
83- - name : Cache app node modules
84- uses : actions/cache@v3
85- id : cache-nm
86- with :
87- path : example/node_modules
88- key : node-modules-${{ hashFiles('**/yarn.lock') }}
89-
90- - name : Rebuild detox
91- if : steps.cache-nm.outputs.cache-hit == 'true'
92- working-directory : example
93- run : yarn detox clean-framework-cache && yarn detox build-framework-cache
94-
9578 - name : Install Dependencies
96- if : steps.cache-nm.outputs.cache-hit != 'true'
9779 working-directory : example
98- run : yarn install --no-audit --prefer-offline && yarn rn-setup
80+ run : ( yarn || yarn) && yarn rn-setup
9981
10082 - name : Cache Pods
101- uses : actions/cache@v3
102- id : podcache
83+ uses : actions/cache@v4
10384 with :
10485 path : example/ios/Pods
10586 key : pods-${{ hashFiles('**/Podfile.lock') }}
10889 working-directory : example
10990 run : |
11091 gem update cocoapods xcodeproj
111- cd ios && pod install && cd ..
92+ pod install --project-directory=ios
11293
11394 - name : Install applesimutils
11495 run : |
@@ -117,19 +98,19 @@ jobs:
11798
11899 - name : Build
119100 working-directory : example
120- run : npx react-native run-ios --no-packager
101+ run : npx react-native run-ios --no-packager --simulator='iPhone 14'
121102
122103 - name : Test iOS app
123104 working-directory : example
124105 run : yarn test:mocha:ios
125106
126107 - name : Prepare articrafts
127- if : failure()
108+ # if: failure()
128109 run : |
129110 mkdir articrafts
130111 find /Users/runner/Library/Developer/CoreSimulator/Devices/ -path '*Documents/ldk' -exec cp -r "{}" articrafts/ \;
131112
132- - uses : actions/upload-artifact@v3
113+ - uses : actions/upload-artifact@v4
133114 if : failure()
134115 with :
135116 name : ldk-data
0 commit comments