diff --git a/.github/workflows/test-mobile-e2e-reusable.yml b/.github/workflows/test-mobile-e2e-reusable.yml index 03e915510790..b08ae6344c92 100644 --- a/.github/workflows/test-mobile-e2e-reusable.yml +++ b/.github/workflows/test-mobile-e2e-reusable.yml @@ -204,19 +204,12 @@ jobs: strategy: fail-fast: false matrix: - include: - - shardIndex: 1 - shardTotal: 1 - if: ${{ inputs.speculos_tests != 'false' }} - - shardIndex: 1 - shardTotal: 3 - if: ${{ inputs.speculos_test != 'false' }} - - shardIndex: 2 - shardTotal: 3 - if: ${{ inputs.speculos_test != 'false' }} - - shardIndex: 3 - shardTotal: 3 - if: ${{ inputs.speculos_test == 'false' }} + shard: + - index: [1, 2, 3] + - total: [3] + exclude: + - shard: ${{ inputs.speculos_tests == 'false' && 'index' }} + - shard: ${{ inputs.speculos_tests == 'false' && 'total' }} steps: - uses: actions/checkout@v4 @@ -309,7 +302,7 @@ jobs: bot_key: ${{ secrets.GH_BOT_PRIVATE_KEY }} - name: Run Android Tests id: detox - run: pnpm mobile e2e:ci -p android -t $([[ "$INPUT_SPECULOS" == "true" ]] && printf %s '--speculos') --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} + run: pnpm mobile e2e:ci -p android -t $([[ "$INPUT_SPECULOS" == "true" ]] && printf %s '--speculos') --shard ${{ matrix.shard.index }}/${{ matrix.shard.total }} timeout-minutes: ${{ env.SPECULOS_RUN && 120 || 45 }} env: DETOX_INSTALL_TIMEOUT: 120000