Skip to content

Commit

Permalink
update: adding new step to run tests on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
obstar committed Jul 23, 2024
1 parent f12ff8c commit 6fc6bd5
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/e2e_mobile_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,22 @@ jobs:
timeout-minutes: 60
runs-on: macos-latest
steps:
# - name: Checkout repository
# uses: actions/checkout@v4
#
# - name: Setup node
# uses: actions/setup-node@v4
# with:
# node-version: 18
- name: Checkout repository
uses: actions/checkout@v4

# - name: Install dependencies
# run: npm ci
#
# - name: 🔨 Build project
# run: npm run build:cap
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: 🔨 Build project
run: npm run build:cap

- name: 🔨 Build app for iOS simulator
run: xcodebuild -showsdks
- name: 🔨 Get more iOS simulators
run: xcodebuild -downloadPlatform iOS
- name: 🔨 Build app for iOS simulator
run: xcodebuild -showsdks
#xcodebuild -workspace ios/App/App.xcworkspace -scheme App -configuration Debug -sdk iphonesimulator17.5 CODE_SIGN_INDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
run: xcodebuild -workspace ios/App/App.xcworkspace -scheme App -configuration Debug -sdk iphonesimulator17.0 CODE_SIGN_INDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO

# - name: 🏃🏼 Run tests for iOS simulator
# run:
- name: 🏃🏼 Run tests for iOS simulator
run: npm run wdio:ios:15promax:ci -- --spec ./tests/features/onboarding.feature
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"wdio:android:s23ultra": "npx wdio tests/config/wdio.emu.android.galaxyS23Ultra.config.ts --watch",
"wdio:ios:15pro": "npx wdio tests/config/wdio.sim.ios.iphone15Pro.config.ts --watch",
"wdio:ios:15promax": "npx wdio tests/config/wdio.sim.ios.iphone15ProMax.config.ts --watch",
"wdio:ios:15promax:ci": "npx wdio tests/config/wdio.sim.ios.iphone15ProMaxCI.config.ts --watch",
"prepare": "husky install"
},
"dependencies": {
Expand Down
28 changes: 28 additions & 0 deletions tests/config/wdio.sim.ios.iphone15ProMaxCI.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import process from "process";
import {config as sharedConfig} from "./wdio.appium.config.js";


export const config = {
...sharedConfig,
...{
capabilities: [
{
// The defaults you need to have in your config
platformName: "iOS",
maxInstances: 1,
// For W3C the appium capabilities need to have an extension prefix
// This is `appium:` for all Appium Capabilities which can be found here
// http://appium.io/docs/en/writing-running-appium/caps/
"appium:deviceName": "iPhone 15 Pro Max",
"appium:platformVersion": "17.0",
"appium:orientation": "PORTRAIT",
"appium:automationName": "XCUITest",
"appium:autoWebview": true,
"appium:noReset": false,
// The path to the app
"appium:app": process.env.APP_PATH,
"appium:newCommandTimeout": 240,
},
],
},
};

0 comments on commit 6fc6bd5

Please sign in to comment.