This repository was archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
69 lines (55 loc) · 1.68 KB
/
Copy pathbuild.yml
File metadata and controls
69 lines (55 loc) · 1.68 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
name: 'Build'
env:
TEST_APP_NAME: RNUpsTestApp
TEST_SIMULATOR: test_simulator
TEST_DEVICE: iPhone-7
IOS_VERSION: iOS-13-4
DEVELOPER_DIR: /Applications/Xcode_11.4.app/Contents/Developer
on: [pull_request]
jobs:
build-android:
runs-on: macos-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Install test application dependencies
run: |
cd test/${{ env.TEST_APP_NAME }}
npm install ../..
npm install
shell: bash
- name: Compile the android project
run: |
cd test/${{ env.TEST_APP_NAME }}/android
gradle wrapper
./gradlew clean assembleDebug
build-ios:
runs-on: macos-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Install test application dependencies
run: |
cd test/${{ env.TEST_APP_NAME }}
npm install ../..
npm install
shell: bash
- name: Install pods
run: |
cd test/${{ env.TEST_APP_NAME }}/ios
pod install
shell: bash
- name: Create a simulator
run: |
xcrun simctl create ${{ env.TEST_SIMULATOR }} com.apple.CoreSimulator.SimDeviceType.${{ env.TEST_DEVICE }} com.apple.CoreSimulator.SimRuntime.${{ env.IOS_VERSION}}
shell: bash
- name: Compile iOS project
run: |
cd test/${{ env.TEST_APP_NAME }}/ios
xcodebuild -workspace ${{ env.TEST_APP_NAME }}.xcworkspace -configuration Debug -scheme ${{ env.TEST_APP_NAME }} -destination 'name=${{ env.TEST_SIMULATOR }}'