From 0c0defa41fdd06980ece639b34cf28d2ca54a8fa Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Wed, 20 Mar 2024 13:38:08 +0500 Subject: [PATCH] Docker IOS Setup --- .github/workflows/docker_android_workflow.yml | 8 ++++ .github/workflows/docker_ios_workflow.yml | 39 ++----------------- 2 files changed, 12 insertions(+), 35 deletions(-) diff --git a/.github/workflows/docker_android_workflow.yml b/.github/workflows/docker_android_workflow.yml index aabd7c06..b9491f91 100644 --- a/.github/workflows/docker_android_workflow.yml +++ b/.github/workflows/docker_android_workflow.yml @@ -21,6 +21,14 @@ jobs: name: Schedule Android - Regression runs-on: macos-latest steps: + - name: Validate Input Parameter + id: validate_input + run: | + if [[ -z "${{ github.event.inputs.tags }}" ]]; then + echo "Invalid input: 'tags' is required but not provided." + exit 1 + fi + - name: Setup Python id: setup_python if: steps.validate_input.outcome == 'success' diff --git a/.github/workflows/docker_ios_workflow.yml b/.github/workflows/docker_ios_workflow.yml index 262e2795..fa244c7b 100644 --- a/.github/workflows/docker_ios_workflow.yml +++ b/.github/workflows/docker_ios_workflow.yml @@ -130,42 +130,11 @@ jobs: sleep 5 appium -v - - name: Set up Node JS - uses: actions/setup-node@v4 + - name: Set up X Code + id: setup_xcode + uses: maxim-lobanov/setup-xcode@v1 with: - node-version: 20 - cache: 'npm' - - - name: Clean Packages - run: | - rm -rf node_modules - npm cache clean --force - rm -rf package-lock.json - - - name: Install React Native CLI - run: | - npm install react-native-cli - - - name: List iOS Devices & Platforms - run: | - xcrun simctl list - - - name: Install iOS 11.4 Runtime - run: | - gem install xcode-install - xcversion simulators --install='iOS 11.4' - - - name: Create and Run iOS Emulator - iPhoneX on iOS 11.4, Update default appium config for iOS - run: | - xcrun simctl create TestiPhoneX com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-11-4 > deviceid.txt - DEVICEUUID=`cat deviceid.txt` - echo $DEVICEUUID - sed -i -e "s/{IPHONE_UUID}/$DEVICEUUID/g" __tests__/e2e/template_appium_configs_ios.js - xcrun simctl boot $DEVICEUUID & - - - name: Use HTTPS repos - run: | - git config --global url."https://github".insteadOf ssh://git@github + xcode-version: latest - name: Setup dependencies id: setup_dependencies