diff --git a/.github/workflows/build-and-test-pr.yml b/.github/workflows/build-and-test-pr.yml index 37c55935c2e0..3b4055401e9c 100644 --- a/.github/workflows/build-and-test-pr.yml +++ b/.github/workflows/build-and-test-pr.yml @@ -14,7 +14,7 @@ permissions: jobs: determine-affected: name: "Turbo Affected" - if: ${{github.event.pull_request.head.repo.full_name == github.repository }} + if: ${{false}} uses: LedgerHQ/ledger-live/.github/workflows/turbo-affected-reusable.yml@develop with: head_branch: ${{ github.event.pull_request.head.ref || github.event.merge_group.head_ref }} @@ -24,14 +24,14 @@ jobs: build-desktop: name: "Build Desktop" needs: determine-affected - if: ${{contains(needs.determine-affected.outputs.paths, 'ledger-live-desktop') && github.event.pull_request.head.repo.full_name == github.repository }} + if: ${{false}} uses: LedgerHQ/ledger-live/.github/workflows/build-desktop-reusable.yml@develop secrets: inherit test-desktop: name: "Test Desktop" needs: determine-affected - if: ${{contains(needs.determine-affected.outputs.paths, 'ledger-live-desktop') && github.event.pull_request.head.repo.full_name == github.repository}} + if: ${{false}} uses: LedgerHQ/ledger-live/.github/workflows/test-desktop-reusable.yml@develop secrets: inherit @@ -39,21 +39,21 @@ jobs: build-mobile: name: "Build Mobile" needs: determine-affected - if: ${{contains(needs.determine-affected.outputs.paths, 'ledger-live-mobile') && github.event.pull_request.head.repo.full_name == github.repository}} + if: ${{false}} uses: LedgerHQ/ledger-live/.github/workflows/build-mobile-reusable.yml@develop secrets: inherit test-mobile: name: "Test Mobile" needs: determine-affected - if: ${{contains(needs.determine-affected.outputs.paths, 'ledger-live-mobile') && github.event.pull_request.head.repo.full_name == github.repository}} + if: ${{false}} uses: LedgerHQ/ledger-live/.github/workflows/test-mobile-reusable.yml@develop secrets: inherit test-mobile-e2e: name: "Test Mobile E2E" - needs: determine-affected - if: ${{contains(needs.determine-affected.outputs.paths, 'ledger-live-mobile') && github.event.pull_request.head.repo.full_name == github.repository}} + # needs: determine-affected + if: ${{true}} uses: LedgerHQ/ledger-live/.github/workflows/test-mobile-e2e-reusable.yml@develop secrets: inherit @@ -61,28 +61,28 @@ jobs: test-libraries: name: "Test Libraries" needs: determine-affected - if: ${{contains(needs.determine-affected.outputs.paths, 'libs') && github.event.pull_request.head.repo.full_name == github.repository}} + if: ${{false}} uses: LedgerHQ/ledger-live/.github/workflows/test-libs-reusable.yml@develop secrets: inherit test-design-system: name: "Test Design System" needs: determine-affected - if: ${{contains(needs.determine-affected.outputs.paths, 'libs/ui') && github.event.pull_request.head.repo.full_name == github.repository}} + if: ${{false}} uses: LedgerHQ/ledger-live/.github/workflows/test-design-system-reusable.yml@develop secrets: inherit test-web-tools: name: "Test Web Tools" needs: determine-affected - if: ${{contains(needs.determine-affected.outputs.paths, 'apps/web-tools') && github.event.pull_request.head.repo.full_name == github.repository}} + if: ${{false}} uses: LedgerHQ/ledger-live/.github/workflows/test-web-tools-reusable.yml@develop secrets: inherit test-cli: name: "Test CLI" needs: determine-affected - if: ${{contains(needs.determine-affected.outputs.paths, 'apps/cli') && github.event.pull_request.head.repo.full_name == github.repository}} + if: ${{false}} uses: LedgerHQ/ledger-live/.github/workflows/test-cli-reusable.yml@develop secrets: inherit diff --git a/.github/workflows/test-mobile-e2e-reusable.yml b/.github/workflows/test-mobile-e2e-reusable.yml index da711859c946..fedac36fbb21 100644 --- a/.github/workflows/test-mobile-e2e-reusable.yml +++ b/.github/workflows/test-mobile-e2e-reusable.yml @@ -50,7 +50,7 @@ permissions: jobs: detox-tests-ios: name: "LLM - iOS Detox Tests" - runs-on: [m1, ARM64] + runs-on: [m1, ARM64, pa4-r102-srv-macrunner03] env: NODE_OPTIONS: "--max-old-space-size=7168" LANG: en_US.UTF-8 @@ -149,7 +149,7 @@ jobs: allure-report-ios: name: "Allure Reports Export on Server" runs-on: [ledger-live-medium] - if: ${{ !cancelled() && github.ref_name == 'develop' }} + if: false needs: [detox-tests-ios] steps: - uses: actions/checkout@v4 @@ -165,6 +165,7 @@ jobs: detox-tests-android: name: "Ledger Live Mobile - Android Detox Tests" runs-on: [ledger-live-linux-8CPU-32RAM] + if: false env: NODE_OPTIONS: "--max-old-space-size=7168" LANG: en_US.UTF-8 @@ -297,7 +298,7 @@ jobs: allure-report-android: name: "Allure Reports Export on Server" runs-on: [ledger-live-medium] - if: ${{ !cancelled() && github.ref_name == 'develop' }} + if: false needs: [detox-tests-android] steps: - name: checkout @@ -327,7 +328,7 @@ jobs: JIRA_URL: https://ledgerhq.atlassian.net/browse TEST_EXECUTION: ${{ matrix.platform == 'android' && inputs.test_execution_android || inputs.test_execution_ios }} needs: [detox-tests-android, detox-tests-ios] - if: ${{ !cancelled() && inputs.export_to_xray }} + if: false steps: - uses: actions/checkout@v4 with: @@ -371,7 +372,7 @@ jobs: report: needs: [detox-tests-android, detox-tests-ios] runs-on: ubuntu-latest - if: ${{ !cancelled() && (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event_name == 'pull_request') }} + if: false steps: - uses: actions/checkout@v4 with: @@ -460,7 +461,7 @@ jobs: report-on-slack: runs-on: ubuntu-latest needs: [detox-tests-android, detox-tests-ios] - if: ${{ failure() && github.event_name == 'push' }} + if: false steps: - name: format message uses: actions/github-script@v7 diff --git a/apps/ledger-live-mobile/scripts/e2e-ci.mjs b/apps/ledger-live-mobile/scripts/e2e-ci.mjs index 85c6d35d2268..06598ee276f8 100755 --- a/apps/ledger-live-mobile/scripts/e2e-ci.mjs +++ b/apps/ledger-live-mobile/scripts/e2e-ci.mjs @@ -35,7 +35,8 @@ const bundle_ios_with_cache = async () => { }; const test_ios = async () => { - await $`pnpm mobile e2e:test${speculos} \ + await $`echo 'Starting detox tests with 2 workers...' && pnpm mobile e2e:test${speculos} \ + e2e/specs/onboarding.spec.ts e2e/specs/receive/currencies.spec.ts \ -c ios.sim.release \ --loglevel error \ --record-logs all \ @@ -43,7 +44,9 @@ const test_ios = async () => { --forceExit \ --headless \ --retries 1 \ - --cleanup`; + --cleanup \ + --maxWorkers 2 \ + `; }; const build_android = async () => {