Skip to content

Commit 2bb8c24

Browse files
Cleanup
1 parent 1c16dea commit 2bb8c24

File tree

2 files changed

+35
-36
lines changed

2 files changed

+35
-36
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,24 @@ jobs:
5050
- name: checkout
5151
uses: actions/checkout@v4
5252

53+
- name: Setup Node.js environment
54+
uses: actions/setup-node@v4
55+
with:
56+
node-version: 20
57+
5358
- name: Get yarn cache directory path
5459
id: yarn-cache-dir-path
5560
run: echo "::set-output name=dir::$(yarn cache dir)"
5661

57-
- uses: actions/cache@v4
62+
- name: Yarn cache
63+
uses: actions/cache@v4
5864
id: yarn-cache
5965
with:
6066
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
6167
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
6268
restore-keys: |
6369
${{ runner.os }}-yarn-
6470
65-
- name: Setup Node.js environment
66-
uses: actions/setup-node@v4
67-
with:
68-
node-version: 20
69-
7071
- name: Install Dependencies
7172
run: yarn bootstrap-no-pods
7273

@@ -202,50 +203,45 @@ jobs:
202203
- name: checkout
203204
uses: actions/checkout@v4
204205

206+
- name: Setup Node.js environment
207+
uses: actions/setup-node@v4
208+
with:
209+
node-version: 20
210+
205211
- name: Setup Xcode
206212
run: sudo xcode-select -s /Applications/Xcode_16.3.app/Contents/Developer
207213

208214
- name: Get yarn cache directory path
209215
id: yarn-cache-dir-path
210216
run: echo "::set-output name=dir::$(yarn cache dir)"
211217

212-
- uses: actions/cache@v4
218+
- name: Yarn cache
219+
uses: actions/cache@v4
213220
id: yarn-cache
214221
with:
215222
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
216223
key: ${{ runner.os }}-yarn-${{ hashFiles('example/yarn.lock') }}
217224
restore-keys: |
218225
${{ runner.os }}-yarn-
219226
220-
- uses: actions/cache@v4
227+
- name: CocoaPods cache
228+
uses: actions/cache@v4
221229
with:
222230
path: example/ios/Pods
223231
key: v2-${{ runner.os }}-pods-${{ env.NEW_ARCH_ENABLED }}-${{ hashFiles('example/ios/Podfile.lock') }}
224232
restore-keys: |
225233
v2-${{ runner.os }}-pods-${{ env.NEW_ARCH_ENABLED }}-
226234
227-
- name: Setup Node.js environment
228-
uses: actions/setup-node@v4
229-
with:
230-
node-version: 20
231-
232235
- name: Install Dependencies
233-
run: yarn bootstrap-no-pods
234-
235-
- name: Generate bundle
236-
run: yarn example build:ios
236+
run: yarn bootstrap
237237

238238
- name: Install Maestro CLI
239239
run: |
240240
curl -Ls "https://get.maestro.mobile.dev" | bash
241241
echo "${HOME}/.maestro/bin" >> $GITHUB_PATH
242242
243-
- name: Install CocoaPods
244-
run: |
245-
cd example
246-
bundle install
247-
cd ios
248-
bundle exec pod install
243+
- name: Generate example app JS bundle
244+
run: yarn example build:ios
249245

250246
- name: Build iOS App
251247
env:

.github/workflows/unit-tests.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,35 @@ jobs:
1414
- name: checkout
1515
uses: actions/checkout@v4
1616

17+
- name: Setup Node.js environment
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
1722
- name: Setup Xcode
1823
run: sudo xcode-select -s /Applications/Xcode_16.3.app/Contents/Developer
1924

2025
- name: Get yarn cache directory path
2126
id: yarn-cache-dir-path
2227
run: echo "::set-output name=dir::$(yarn cache dir)"
2328

24-
- uses: actions/cache@v4
29+
- name: Yarn cache
30+
uses: actions/cache@v4
2531
id: yarn-cache
2632
with:
2733
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
2834
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
2935
restore-keys: |
3036
${{ runner.os }}-yarn-
3137
32-
- uses: actions/cache@v4
38+
- name: CocoaPods cache
39+
uses: actions/cache@v4
3340
with:
3441
path: example/ios/Pods
3542
key: v2-${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
3643
restore-keys: |
3744
v2-${{ runner.os }}-pods-
3845
39-
- name: Setup Node.js environment
40-
uses: actions/setup-node@v4
41-
with:
42-
node-version: 20
43-
4446
- name: Install Dependencies
4547
run: yarn bootstrap
4648

@@ -63,23 +65,24 @@ jobs:
6365
- name: checkout
6466
uses: actions/checkout@v4
6567

68+
- name: Setup Node.js environment
69+
uses: actions/setup-node@v4
70+
with:
71+
node-version: 20
72+
6673
- name: Get yarn cache directory path
6774
id: yarn-cache-dir-path
6875
run: echo "::set-output name=dir::$(yarn cache dir)"
6976

70-
- uses: actions/cache@v4
77+
- name: Yarn cache
78+
uses: actions/cache@v4
7179
id: yarn-cache
7280
with:
7381
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
7482
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
7583
restore-keys: |
7684
${{ runner.os }}-yarn-
7785
78-
- name: Setup Node.js environment
79-
uses: actions/setup-node@v4
80-
with:
81-
node-version: 20
82-
8386
- name: Install Dependencies
8487
run: yarn bootstrap-no-pods
8588

0 commit comments

Comments
 (0)