-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (53 loc) · 1.55 KB
/
app.test.e2e.yaml
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
name: App / Tests / E2E
on:
workflow_dispatch:
jobs:
build-and-test:
name: Build, Test iOS, and Test Android
runs-on: macos-14
env:
MAESTRO_CLI_NO_ANALYTICS: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: yarn
cache-dependency-path: '**/yarn.lock'
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: Set LANG globally for subsequent steps
run: echo "LANG=en_US.UTF-8" >> $GITHUB_ENV
- name: Install maestro CLI
run: |
brew tap mobile-dev-inc/tap
brew install maestro
- name: Setup project
run: yarn setup
- name: Pod install for iOS
run: npx pod-install
- name: Start expo metro server
run: npx expo start &
- name: Take screenshots (iOS)
uses: futureware-tech/simulator-action@v2
with:
model: 'iPhone 14 Pro'
- name: Maestro iOS Test
run: maestro test maestro/take-screenshots-ios.yaml
- name: Start Android Emulator
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
arch: x86_64
ram-size: 2048M
target: default
- name: Take screenshots (Android)
run: maestro test maestro/take-screenshots.yaml
- name: Archive screenshots
uses: actions/upload-artifact@v4
with:
name: screenshots
path: |
dist