Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/actions/test-ios-rntester/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,27 @@ runs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ inputs.ruby-version }}
bundler: none
- name: Install Bundler
shell: bash
run: |
BUNDLER_VERSION="$(awk '/BUNDLED WITH/{getline; print $1}' Gemfile.lock)"
if [ -z "$BUNDLER_VERSION" ]; then
echo "Could not determine Bundler version from Gemfile.lock." >&2
exit 1
fi
for attempt in 1 2 3; do
echo "Attempt $attempt of 3"
if gem install bundler --version "$BUNDLER_VERSION" --no-document; then
exit 0
fi
if [ "$attempt" -lt 3 ]; then
echo "Attempt $attempt failed. Retrying..."
sleep "$((attempt * 10))"
fi
done
echo "All 3 attempts failed."
exit 1
- name: Set Hermes prebuilt version
shell: bash
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/e2e-ios-rntester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ jobs:
steps:
- id: check
run: |
if [[ "${{ needs.test.outputs.status }}" == "failure" ]]; then
if [[ "${{ needs.test.result }}" != "success" ||
"${{ needs.test.outputs.status }}" == "failure" ]]; then
echo "status=failure" >> $GITHUB_OUTPUT
else
echo "status=success" >> $GITHUB_OUTPUT
Expand Down
Loading