File tree Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : React Native CI
2
+
3
+ on :
4
+ pull_request :
5
+ branches : main
6
+ push :
7
+ branches : main
8
+ schedule :
9
+ - cron : ' 0 0 * * *' # Runs at 00:00 UTC every day
10
+
11
+ jobs :
12
+ ios-build :
13
+ name : iOS Build
14
+ runs-on : macos-latest
15
+ defaults :
16
+ run :
17
+ working-directory : example
18
+
19
+ steps :
20
+ - name : Checkout repository
21
+ uses : actions/checkout@v3
22
+
23
+ - name : Setup Node.js
24
+ uses : actions/setup-node@v3
25
+ with :
26
+ node-version : ' 18'
27
+
28
+ - name : Install dependencies
29
+ run : |
30
+ npm install --frozen-lockfile
31
+ cd ios && pod install
32
+
33
+ - name : Build iOS
34
+ run : |
35
+ npx react-native run-ios --mode Release --no-packager
36
+
37
+ android-build :
38
+ name : Android Build
39
+ runs-on : ubuntu-latest
40
+ defaults :
41
+ run :
42
+ working-directory : example
43
+
44
+ steps :
45
+ - name : Checkout repository
46
+ uses : actions/checkout@v3
47
+
48
+ - name : Setup Node.js
49
+ uses : actions/setup-node@v3
50
+ with :
51
+ node-version : ' 18'
52
+ cache : ' npm'
53
+ cache-dependency-path : example/package-lock.json
54
+
55
+ - name : Setup Java
56
+ uses : actions/setup-java@v3
57
+ with :
58
+ distribution : ' zulu'
59
+ java-version : ' 17'
60
+
61
+ - name : Install dependencies
62
+ run : npm install --frozen-lockfile
63
+
64
+ - name : Build Android
65
+ run : |
66
+ npx react-native run-android --mode Release --no-packager
67
+
You can’t perform that action at this time.
0 commit comments