From 9d121256222fa4fecf1eff367aeb3d29d73b7901 Mon Sep 17 00:00:00 2001 From: Nalem7 <61624650+nabim777@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:17:51 +0545 Subject: [PATCH] CI: Run phpunit test one times more on error (#687) * retry on the phpunit error for ci Signed-off-by: nabim777 * use pipeline for retry Signed-off-by: nabim777 --------- Signed-off-by: nabim777 --- .github/workflows/shared_workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/shared_workflow.yml b/.github/workflows/shared_workflow.yml index f8561c6fa..49e1f52a6 100644 --- a/.github/workflows/shared_workflow.yml +++ b/.github/workflows/shared_workflow.yml @@ -111,10 +111,10 @@ jobs: ./occ a:e integration_openproject cd apps/integration_openproject # The following if block can be removed once Nextcloud no longer supports PHP 8.0 - if [ "${{matrix.phpVersion}}" -eq 8 ]; then - make phpunitforphp8.0 + if [ "${{ matrix.phpVersion }}" -eq 8 ]; then + make phpunitforphp8.0 || (echo "A few of the unit tests were unsuccessful. Rerunning the unit test once again......" && make phpunitforphp8.0) else - make phpunit + make phpunit || (echo "A few of the unit tests were unsuccessful. Rerunning the unit test once again......" && make phpunit) fi make jsunit