-
Notifications
You must be signed in to change notification settings - Fork 12
54 lines (53 loc) · 1.57 KB
/
build.yml
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
name: Build TestFairy for React Native
on:
push:
schedule:
- cron: '0 2 * * *'
jobs:
build-ios:
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.0.0'
- name: Install Dependencies
run: |
npm install -g react-native-cli
gem install xcpretty
gem install cocoapods -v 1.10.1
- name: Create and build sample project with TestFairy
run: |
react-native init AwesomeProject
cd AwesomeProject
npm install ../
git apply ../misc/testfairy.patch
cd ios
pod install
set -o pipefail
xcrun xcodebuild -workspace AwesomeProject.xcworkspace -scheme AwesomeProject -configuration Debug CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO GCC_WARN_INHIBIT_ALL_WARNINGS=YES | xcpretty
build-android:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.0.0'
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Install Dependencies
run: |
npm install -g react-native-cli
- name: Create and build sample project with TestFairy
run: |
react-native init AwesomeProject
cd AwesomeProject
npm install ../
git apply ../misc/testfairy.patch
cd android
./gradlew --no-daemon assembleRelease