-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (46 loc) · 1.51 KB
/
e2e-ios.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
name: e2e tests iOS
on: [push]
jobs:
test-ios:
name: e2e-ios-test
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v3
# build App
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/cache@v2
with:
path: example/ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install node_modules
run: yarn
- name: Build iOS App
working-directory: example
# run: yarn run react-native run-ios --configuration Release --simulator "iPhone 13 (15.2)"
run: yarn run react-native run-ios --mode Release
# Install Maestro
- name: Install Maestro CLI
run: |
curl -Ls "https://get.maestro.mobile.dev" | bash
brew tap facebook/fb
brew install facebook/fb/idb-companion
- name: Add Maestro to path
run: echo "${HOME}/.maestro/bin" >> $GITHUB_PATH
# Run e2e test
- name: Test
run: maestro test e2e-tests/maestro-flow-ios.yml
# - name: Debug
# if: always()
# run: maestro hierarchy