-
Notifications
You must be signed in to change notification settings - Fork 13
37 lines (31 loc) · 1.18 KB
/
e2e_mobile_tests.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
name: Mobile e2e tests
on:
workflow_dispatch:
jobs:
mobile-e2e-tests:
timeout-minutes: 60
runs-on: [self-hosted, macOS, ARM64]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: 🦾 Create .env file
run: |
echo "APP_PATH=/Users/admin/Library/Developer/Xcode/DerivedData/App-artdanwhyejdrjaissakjwinbepw/Build/Products/Debug-iphonesimulator/App.app" > .env
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: 🔨 Build project
run: |
export LANG=en_US.UTF-8
npm run build:cap
- name: 🔨 Build app for iOS simulator
run: xcodebuild -workspace ios/App/App.xcworkspace -scheme App -configuration Debug -sdk iphonesimulator17.5 CODE_SIGN_INDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
- name: 📱 Start appium
run: appium &
- name: 📱 Start iOS simulator app
run: open -a Simulator.app &
- name: 🏃🏼 Run tests for iOS simulator
run: npm run wdio:ios:15promax -- --spec ./tests/features/onboarding.feature