From 37129475c91862151f3a470ff33a2ab7361b217b Mon Sep 17 00:00:00 2001 From: Sanyi Date: Mon, 29 Jul 2024 08:02:53 +0200 Subject: [PATCH] EMA-150 auto test memory optimizing --- .github/workflows/tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4e81528..80d6092 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -70,11 +70,12 @@ jobs: - name: Run unit test shell: bash run: | + cd magento2-extension retries=3 count=0 until [ $count -ge $retries ] do - cd magento2-extension && bash dev/testv2/tools/scripts/run-unit.sh && break + bash dev/testv2/tools/scripts/run-unit.sh && break count=$((count+1)) echo "Retrying e2e tests ($count/$retries)..." sleep 30 @@ -147,11 +148,12 @@ jobs: - name: Run e2e test shell: bash run: | + cd magento2-extension retries=3 count=0 until [ $count -ge $retries ] do - cd magento2-extension && bash dev/testv2/tools/scripts/run-e2e.sh && break + bash dev/testv2/tools/scripts/run-e2e.sh && break count=$((count+1)) echo "Retrying e2e tests ($count/$retries)..." sleep 30