From 4cada52da5d6d693856fd0171604184ba3a1a516 Mon Sep 17 00:00:00 2001 From: Henri Ly Date: Wed, 4 May 2022 18:28:03 +0200 Subject: [PATCH] retry update ios yml --- .github/workflows/bot-ios-v2.yml | 40 +++++++++++++++++--------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/.github/workflows/bot-ios-v2.yml b/.github/workflows/bot-ios-v2.yml index b3fd4fa3cb..782cd3018a 100644 --- a/.github/workflows/bot-ios-v2.yml +++ b/.github/workflows/bot-ios-v2.yml @@ -72,6 +72,26 @@ jobs: yarn ci-setup-cli yarn ci-setup-rn + - name: Metro Bundler Cache + uses: actions/cache@v2 + with: + path: ${{ steps.workflow-variables.outputs.metro-cache }} + key: ${{ runner.os }}-metro-v1-${{ github.run_id }} + restore-keys: ${{ runner.os }}-metro-v1 + + - name: Pre-fetch Javascript bundle + working-directory: bot-react-native + run: | + nohup ./node_modules/.bin/react-native start --no-interactive & + printf 'Waiting for packager to come online' + until curl --output /dev/null --silent --head --fail http://localhost:8081/status; do + printf '.' + sleep 2 + done + echo "Packager is online! Preparing bundle..." + curl --output /dev/null --silent --head --fail "http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&inlineSourceMap=true" + echo "...javascript bundle ready" + - name: LOGGER env: BOT_LOG_PROXY_FILE: ../botreport/logs.txt @@ -79,6 +99,7 @@ jobs: mkdir botreport cd cli node ./bin/index botLogProxy -p 8331 & + cd .. - name: Setup Ruby uses: ruby/setup-ruby@v1 @@ -133,25 +154,6 @@ jobs: ccache -s shell: bash - - name: Metro Bundler Cache - uses: actions/cache@v2 - with: - path: ${{ steps.workflow-variables.outputs.metro-cache }} - key: ${{ runner.os }}-metro-v1-${{ github.run_id }} - restore-keys: ${{ runner.os }}-metro-v1 - - - name: Pre-fetch Javascript bundle - run: | - nohup ./node_modules/.bin/react-native start --no-interactive & - printf 'Waiting for packager to come online' - until curl --output /dev/null --silent --head --fail http://localhost:8081/status; do - printf '.' - sleep 2 - done - echo "Packager is online! Preparing bundle..." - curl --output /dev/null --silent --head --fail "http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&inlineSourceMap=true" - echo "...javascript bundle ready" - - name: Detox Test timeout-minutes: 60 working-directory: bot-react-native