-
Notifications
You must be signed in to change notification settings - Fork 69
72 lines (64 loc) · 2.01 KB
/
android.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: E2E tests on bare React Native Android project
on:
push:
branches: [main, '*-stable']
paths:
- .github/workflows/android.yml
- android/**
- src/v8runtime/**
- package.json
- yarn.lock
pull_request:
paths:
- .github/workflows/android.yml
- android/**
- src/v8runtime/**
- package.json
- yarn.lock
jobs:
e2e-test:
runs-on: macos-latest
strategy:
matrix:
rn-version: ['0.72', '0.71']
v8-android-variant:
[v8-android-jit, v8-android-jit-nointl, v8-android, v8-android-nointl]
# include:
# - rn-version: '0.69'
# v8-android-variant: v8-android-jit
# - rn-version: '0.68'
# v8-android-variant: v8-android-jit
steps:
- uses: actions/checkout@v2
- name: Use JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Restore yarn caches
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-workspace-modules-${{ hashFiles('yarn.lock') }}
- name: Yarn install
run: yarn install --frozen-lockfile
- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 33
arch: x86_64
target: google_apis_playstore
script: |
adb logcat -c
python3 scripts/gen_project.py --rn-version ${{ matrix.rn-version }} --v8-android-variant ${{ matrix.v8-android-variant }} TestApp
sleep 20
adb logcat -d > TestApp/adb.log
grep -E "=== V8 version\[.+\] ===" TestApp/adb.log > /dev/null
- name: Upload failed artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: artifacts-${{ matrix.rn-version }}-${{ matrix.v8-android-variant }}
path: |
TestApp/android/app/build/outputs/apk/release/app-release.apk
TestApp/adb.log