-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: workflow for e2e mobile tests
- Loading branch information
Showing
1 changed file
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |