Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
retry update ios yml
Browse files Browse the repository at this point in the history
  • Loading branch information
henri-ly committed May 5, 2022
1 parent 5da89f3 commit 4cada52
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/bot-ios-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,34 @@ 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
run: |
mkdir botreport
cd cli
node ./bin/index botLogProxy -p 8331 &
cd ..
- name: Setup Ruby
uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4cada52

Please sign in to comment.