Skip to content

Commit

Permalink
update: workflow for e2e mobile tests
Browse files Browse the repository at this point in the history
  • Loading branch information
obstar committed Jan 22, 2025
1 parent 2fc70eb commit 5803c41
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/e2e_mobile_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,38 @@
name: Mobile e2e tests
name: e2e mobile tests
on:
workflow_dispatch:
jobs:
test:
e2e-mobile-tests:
timeout-minutes: 60
runs-on: macos-latest
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-dgpfwkrrkmjevwdutjwosmyccrkl/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 iphonesimulator18.0 CODE_SIGN_INDENTITY="org.cardanofoundation.idw" CODE_SIGNING_REQUIRED=YES CODE_SIGNING_ALLOWED=YES
- 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:16promax

0 comments on commit 5803c41

Please # to comment.