-
Notifications
You must be signed in to change notification settings - Fork 4
65 lines (56 loc) · 1.78 KB
/
create-test-applications.yml
File metadata and controls
65 lines (56 loc) · 1.78 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
name: Create Test Applications
on:
push:
branches:
- master
schedule:
- cron: "0 0 1 * *" # every month
jobs:
Build_Android:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- 0.68.1
- 0.69.1
- 0.70.1
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
cache: npm
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/cache@v3
with:
path: TestApplication
key: ${{ runner.os }}-test-app-node-${{ hashFiles('TestApplication/package-lock.json') }}
restore-keys: |
${{ runner.os }}-test-app-node-
- uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('TestApplication/android/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-caches-
- run: npm install
- run: npm pack
- name: Create React Native v${{ matrix.version }} application
run: bin/create-test-application ${{ matrix.version }}
env:
INTEGRATION_TEST_APP_NAME: TestApplication
INTEGRATION_TEST_NO_RUN_APP: 1
- name: Build Android APK
working-directory: TestApplication/android
run: ./gradlew assembleRelease
- name: Upload Android APK
uses: actions/upload-artifact@v3
with:
name: android-release-react-native-${{ matrix.version }}
path: TestApplication/android/app/build/outputs/apk/release/
retention-days: 7