forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.06 KB
/
rnmobile-android-runner.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
name: React Native E2E Tests (Android)
on:
pull_request:
paths-ignore:
- '**.md'
jobs:
test:
runs-on: macos-latest
strategy:
matrix:
native-test-name: [
gutenberg-editor-gallery
]
steps:
- name: checkout
uses: actions/checkout@v2
- name: Restore npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
- run: npm ci
- name: Restore Gradle cache
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 28
profile: pixel_xl
script: npm run native test:e2e:android:local ${{ matrix.native-test-name }}
- uses: actions/upload-artifact@v2
if: always()
with:
name: android-screen-recordings
path: packages/react-native-editor/android-screen-recordings