-
Notifications
You must be signed in to change notification settings - Fork 273
73 lines (59 loc) · 2.02 KB
/
e2e_ios.yml
File metadata and controls
73 lines (59 loc) · 2.02 KB
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
name: e2e-ios
on:
pull_request:
branches:
- '**'
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e-ios:
runs-on: macos-latest
timeout-minutes: 10
steps:
- name: Checkout react-native-update
uses: actions/checkout@v4
- name: Checkout react-native-update-cli
uses: actions/checkout@v4
with:
repository: reactnativecn/react-native-update-cli
path: react-native-update-cli
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Install applesimutils
run: HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew && HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils
- name: Install testHotUpdate dependencies
run: cd Example/testHotUpdate && bun install --frozen-lockfile
- name: Install react-native-update-cli dependencies
run: cd react-native-update-cli && bun install --frozen-lockfile
- name: Rebuild Detox iOS framework cache
run: |
cd Example/testHotUpdate
npx detox clean-framework-cache
npx detox build-framework-cache
- name: Detox build (ios.sim.release)
env:
RNU_CLI_ROOT: ${{ github.workspace }}/react-native-update-cli
run: cd Example/testHotUpdate && E2E_PLATFORM=ios npx detox build --configuration ios.sim.release
- name: Detox test (ios.sim.release)
env:
RNU_CLI_ROOT: ${{ github.workspace }}/react-native-update-cli
run: cd Example/testHotUpdate && E2E_PLATFORM=ios npx detox test --configuration ios.sim.release