Skip to content

Commit b26724b

Browse files
Fix download ios.zip
Co-authored-by: SrinivasanTarget <srinivasan.sekar1990@gmail.com>
1 parent bf779e8 commit b26724b

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/appium3_ios.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@ jobs:
2727

2828
- name: List Installed Simulators
2929
run: xcrun simctl list devices available
30+
- name: Install jq
31+
run: brew install jq
3032

33+
- run: |
34+
ios_app=$(curl -s https://api.github.com/repos/AppiumTestDistribution/appium-flutter-server/releases/latest | jq -r '.assets[] | select(.name=="ios.zip") | .browser_download_url')
35+
echo "Downloading from: $ios_app"
36+
curl -LO "$ios_app"
37+
echo "APP_PATH=$(pwd)/ios.zip" >> $GITHUB_ENV
38+
name: Download sample iOS app
39+
3140
- name: Start iOS Simulator UI
3241
run: open -Fn "$(xcode-select --print-path)/Applications/Simulator.app"
3342

@@ -66,17 +75,7 @@ jobs:
6675
xcrun simctl install $udid $PREBUILT_WDA_PATH
6776
xcrun simctl launch $udid "com.facebook.WebDriverAgentRunner.xctrunner"
6877
name: Install and launch WDA on Simulator
69-
70-
71-
- run: |
72-
release_info=$(curl -s https://api.github.com/repos/AppiumTestDistribution/appium-flutter-server/releases/latest)
73-
asset_urls=$(echo "$release_info" | grep "browser_download_url" | cut -d '"' -f 4)
74-
ios_app=$(echo "$asset_urls" | tail -n 1)
75-
echo "$ios_app"
76-
curl -LO "$ios_app"
77-
echo "APP_PATH=$(pwd)/ios.zip" >> $GITHUB_ENV
78-
name: Download sample iOS app
79-
78+
8079
- run: |
8180
mkdir -p appium-logs
8281
UDID=$udid APP_PATH=$APP_PATH npm run wdio-ios | tee appium-logs/logs.txt

0 commit comments

Comments
 (0)