From feefec3018efc02da2dfa3fd5a150ecb8dc87c6c Mon Sep 17 00:00:00 2001 From: Abdurrahman SASTIM Date: Fri, 13 Dec 2024 12:27:31 +0100 Subject: [PATCH] ci: fix sharding for push --- .github/workflows/test-mobile-e2e-reusable.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-mobile-e2e-reusable.yml b/.github/workflows/test-mobile-e2e-reusable.yml index b4a1f8c26a5..53ce0e1f7f4 100644 --- a/.github/workflows/test-mobile-e2e-reusable.yml +++ b/.github/workflows/test-mobile-e2e-reusable.yml @@ -207,9 +207,9 @@ jobs: shardIndex: [1, 2, 3] shardTotal: [3, 1] exclude: - - shardIndex: ${{ github.event.inputs.speculos_tests == 'false' && '2' }} - - shardIndex: ${{ github.event.inputs.speculos_tests == 'false' && '3' }} - - shardTotal: ${{ github.event.inputs.speculos_tests == 'false' && '3' }} + - shardIndex: ${{ (github.event.inputs.speculos_tests == 'false' || github.event_name == 'push') && '2' }} + - shardIndex: ${{ (github.event.inputs.speculos_tests == 'false' || github.event_name == 'push') && '3' }} + - shardTotal: ${{ (github.event.inputs.speculos_tests == 'false' || github.event_name == 'push') && '3' }} - shardTotal: ${{ github.event.inputs.speculos_tests != 'false' && '1' }} steps: