-
Notifications
You must be signed in to change notification settings - Fork 9
62 lines (50 loc) · 1.45 KB
/
ui-tests.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
name: UI Tests
on:
# push:
# branches: ["main"]
pull_request:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
test:
name: Run UI Tests on iPhone Simulator
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install dependencies
run: |
make install-typeshare && make install-toolchains
brew install swiftgen xcbeautify
- name: Install Maestro
run: |
curl -Ls "https://get.maestro.mobile.dev" | bash
export PATH="$PATH":"$HOME/.maestro/bin"
brew tap facebook/fb
brew install facebook/fb/idb-companion
- name: Build Core
run: make generate-stone
- name: Build
run: make build
- name: UI Tests
run: make test-ui
# - uses: mobile-dev-inc/action-maestro-cloud@v1
# with:
# api-key: ${{ secrets.MAESTRO_CLOUD_API_KEY }}
# app-file: build/Build/Products/Debug-iphonesimulator/Gem.app