Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ self-hosted-runner:
- "ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg"
- "ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-xl"
- "low-priority"
- "bitrise_pool_name:DemoFA"
- "bitrise_pool_name:DemoFAXL"

# Configuration variables in array of strings defined in your repository or
# organization. `null` means disabling configuration variables check.
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/run-e2e-smoke-tests-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
required: false
type: string
default: ''
use_bitrise_runner:
description: 'Route iOS E2E jobs to Bitrise self-hosted runner group.'
required: false
type: boolean
default: false

permissions:
contents: read
Expand All @@ -35,6 +40,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

trade-ios-smoke:
Expand All @@ -53,6 +59,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

perps-ios-smoke:
Expand All @@ -71,6 +78,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

wallet-platform-ios-smoke:
Expand All @@ -89,6 +97,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

identity-ios-smoke:
Expand All @@ -107,6 +116,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

accounts-ios-smoke:
Expand All @@ -125,6 +135,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

network-abstraction-ios-smoke:
Expand All @@ -143,6 +154,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

network-expansion-ios-smoke:
Expand All @@ -161,6 +173,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

prediction-market-ios-smoke:
Expand All @@ -179,6 +192,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

card-ios-smoke:
Expand All @@ -197,6 +211,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

ramps-ios-smoke:
Expand All @@ -215,6 +230,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

multichain-api-ios-smoke:
Expand All @@ -233,6 +249,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

seedless-onboarding-ios-smoke:
Expand All @@ -251,6 +268,7 @@ jobs:
changed_files: ${{ inputs.changed_files }}
build_type: 'main'
metamask_environment: 'qa'
use_bitrise_runner: ${{ inputs.use_bitrise_runner }}
secrets: inherit

report-ios-smoke-tests:
Expand Down
35 changes: 34 additions & 1 deletion .github/workflows/run-e2e-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,16 @@ on:
required: false
type: string
default: 'main-'
use_bitrise_runner:
description: 'Route iOS E2E jobs to Bitrise self-hosted runner group.'
required: false
type: boolean
default: false

jobs:
test-e2e-mobile:
name: ${{ inputs.test-suite-name }}
runs-on: ${{ inputs.platform == 'ios' && 'ghcr.io/cirruslabs/macos-runner:tahoe' || 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg' }}
runs-on: ${{ inputs.platform == 'ios' && (inputs.use_bitrise_runner && fromJSON('{"group":"temp-bitrise-runners","labels":["bitrise_pool_name:DemoFA"]}') || 'ghcr.io/cirruslabs/macos-runner:tahoe') || 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg' }}
outputs:
apk-target-path: ${{ steps.determine-target-paths.outputs.apk-target-path }}
test-apk-target-path: ${{ steps.determine-target-paths.outputs.test-apk-target-path }}
Expand Down Expand Up @@ -102,6 +107,34 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# TEMPORARY: Bitrise runners use Vagrant (user=vagrant, HOME=/Users/vagrant).
# GitHub Actions tools hardcode /Users/runner paths. Create symlink to fix.
- name: Fix Vagrant environment paths (Bitrise runners)
if: ${{ inputs.use_bitrise_runner && inputs.platform == 'ios' }}
run: |
if [ -L /Users/runner ]; then
current_target="$(readlink /Users/runner)"
if [ "$current_target" = "/Users/vagrant" ]; then
echo "Symlink already correct: /Users/runner → /Users/vagrant"
else
echo "Replacing incorrect symlink /Users/runner → $current_target"
sudo rm /Users/runner
sudo ln -s /Users/vagrant /Users/runner
echo "Recreated symlink: /Users/runner → /Users/vagrant"
fi
elif [ -e /Users/runner ]; then
echo "Error: /Users/runner exists but is not a symlink"
ls -ld /Users/runner
exit 1
else
sudo ln -s /Users/vagrant /Users/runner
echo "Created symlink /Users/runner → /Users/vagrant"
fi
mkdir -p "$HOME/hostedtoolcache" "$HOME/tmp"
echo "RUNNER_TOOL_CACHE=$HOME/hostedtoolcache" >> "$GITHUB_ENV"
echo "RUNNER_TEMP=$HOME/tmp" >> "$GITHUB_ENV"
shell: bash
Comment thread
Qbandev marked this conversation as resolved.
Comment thread
Qbandev marked this conversation as resolved.

- name: Set up E2E environment
timeout-minutes: 15
uses: ./.github/actions/setup-e2e-env
Expand Down
Loading
Loading