-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (68 loc) · 1.88 KB
/
Copy pathcompatibility.yml
File metadata and controls
79 lines (68 loc) · 1.88 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
74
75
76
77
78
79
name: Compatibility
on:
workflow_dispatch:
jobs:
compatibility:
runs-on: macos-15
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.react-native-version }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
react-native-version:
- '0.77.2'
- '0.78.2'
- '0.79.2'
- '0.80.0'
- '0.81.5'
- '0.82.1'
- '0.83.2'
steps:
- name: Checkout SDK
uses: actions/checkout@v6
with:
path: sdk
- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: 24
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
- name: Build SDK
working-directory: sdk
run: |
npm install
npm run prepare
npm pack
- name: Create RN Project
run: |
npx @react-native-community/cli init CompatTest \
--version ${{ matrix.react-native-version }} \
--skip-git-init \
--skip-install
- name: Install Dependencies
working-directory: CompatTest
run: |
npm install
npm install ../sdk/didomi-react-native-*.tgz
- name: Build Android
working-directory: CompatTest/android
run: |
chmod +x ./gradlew
./gradlew assembleDebug --no-daemon
- name: Install Pods
working-directory: CompatTest/ios
run: pod install
- name: Build iOS
working-directory: CompatTest/ios
run: |
xcodebuild build \
-workspace CompatTest.xcworkspace \
-scheme CompatTest \
-sdk iphonesimulator \
-destination "platform=iOS Simulator,name=iPhone 16" \
CODE_SIGNING_ALLOWED=NO