From 878a060247d8c8858dbcf9d40e506abaeae94cf4 Mon Sep 17 00:00:00 2001 From: Jakub Obstarczyk <783692+obstar@users.noreply.github.com> Date: Thu, 17 Oct 2024 16:04:57 +0200 Subject: [PATCH] update: adding new steps for e2e mobile test workflow --- .github/workflows/e2e_mobile_tests.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e_mobile_tests.yaml b/.github/workflows/e2e_mobile_tests.yaml index dd52318ba..70bc0ce00 100644 --- a/.github/workflows/e2e_mobile_tests.yaml +++ b/.github/workflows/e2e_mobile_tests.yaml @@ -2,13 +2,15 @@ name: Mobile e2e tests on: workflow_dispatch: jobs: - test: + mobile-e2e-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-artdanwhyejdrjaissakjwinbepw/Build/Products/Debug-iphonesimulator/App.app" > .env - name: Setup node uses: actions/setup-node@v4 with: @@ -16,3 +18,18 @@ jobs: - name: Install dependencies run: npm ci + + - name: 🔨 Build project + run: 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 \ No newline at end of file