-
Notifications
You must be signed in to change notification settings - Fork 37
55 lines (49 loc) · 1.49 KB
/
test.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
55
name: Test React Native Compatibility
on: [ push, pull_request ]
jobs:
test-android:
strategy:
matrix:
react-native: [ 0.67.0, 0.69.0, 0.71.0 ]
node-version: [ 16.x ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
cd example
npm install --legacy-peer-deps
npm install react-native@${{ matrix.react-native }} --legacy-peer-deps
- name: Build Android in Example
run: |
cd example/android
./gradlew assembleDebug
# test-ios:
# strategy:
# matrix:
# react-native: [ 0.67.0, 0.69.0, 0.71.0 ]
# node-version: [ 16.x ]
# runs-on: macos-latest # Запуск на macOS
#
# steps:
# - uses: actions/checkout@v3
# - name: Setup Node.js
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
#
# - name: Install dependencies
# run: |
# cd example
# npm install --legacy-peer-deps
# npm install react-native@${{ matrix.react-native }} --legacy-peer-deps
#
# - name: Build iOS in Example
# run: |
# cd example/ios
# pod install
# xcodebuild -workspace example.xcworkspace -scheme example -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11' build