diff --git a/.github/workflows/build-mariadb.yml b/.github/workflows/build-mariadb.yml index 34b1d5acd..781b1ea38 100644 --- a/.github/workflows/build-mariadb.yml +++ b/.github/workflows/build-mariadb.yml @@ -79,6 +79,7 @@ jobs: sudo apt-get install ghostscript graphviz -y - name: Build & Test + uses: nick-fields/retry@v2 env: AWS_ENDPOINT_URL: http://localhost:4566 AWS_ACCESS_KEY_ID: localstack @@ -86,7 +87,11 @@ jobs: AWS_REGION: us-east-1 FINERACT_REPORT_EXPORT_S3_ENABLED: true FINERACT_REPORT_EXPORT_S3_BUCKET_NAME: fineract-reports - run: | + with: + timeout_minutes: 90 + max_attempts: 3 + retry_on: error + command: | ./gradlew --no-daemon --console=plain build test -x doc -x :twofactor-tests:test -x :oauth2-test:test ./gradlew --no-daemon --console=plain :twofactor-tests:test ./gradlew --no-daemon --console=plain :oauth2-tests:test diff --git a/.github/workflows/build-mysql.yml b/.github/workflows/build-mysql.yml index 570224d7c..da7ac7a3a 100644 --- a/.github/workflows/build-mysql.yml +++ b/.github/workflows/build-mysql.yml @@ -79,6 +79,7 @@ jobs: sudo apt-get install ghostscript graphviz -y - name: Build & Test + uses: nick-fields/retry@v2 env: AWS_ENDPOINT_URL: http://localhost:4566 AWS_ACCESS_KEY_ID: localstack @@ -86,7 +87,11 @@ jobs: AWS_REGION: us-east-1 FINERACT_REPORT_EXPORT_S3_ENABLED: true FINERACT_REPORT_EXPORT_S3_BUCKET_NAME: fineract-reports - run: | + with: + timeout_minutes: 90 + max_attempts: 3 + retry_on: error + command: | ./gradlew --no-daemon --console=plain build test -x doc -x :twofactor-tests:test -x :oauth2-test:test -PdbType=mysql ./gradlew --no-daemon --console=plain :twofactor-tests:test -PdbType=mysql ./gradlew --no-daemon --console=plain :oauth2-tests:test -PdbType=mysql diff --git a/.github/workflows/build-postgresql.yml b/.github/workflows/build-postgresql.yml index 21dec01ed..077d716a3 100644 --- a/.github/workflows/build-postgresql.yml +++ b/.github/workflows/build-postgresql.yml @@ -80,6 +80,7 @@ jobs: sudo apt-get install ghostscript graphviz -y - name: Build & Test + uses: nick-fields/retry@v2 env: AWS_ENDPOINT_URL: http://localhost:4566 AWS_ACCESS_KEY_ID: localstack @@ -87,7 +88,11 @@ jobs: AWS_REGION: us-east-1 FINERACT_REPORT_EXPORT_S3_ENABLED: true FINERACT_REPORT_EXPORT_S3_BUCKET_NAME: fineract-reports - run: | + with: + timeout_minutes: 90 + max_attempts: 3 + retry_on: error + command: | ./gradlew --no-daemon --console=plain build test -x doc -x :twofactor-tests:test -x :oauth2-test:test -PdbType=postgresql ./gradlew --no-daemon --console=plain :twofactor-tests:test -PdbType=postgresql ./gradlew --no-daemon --console=plain :oauth2-tests:test -PdbType=postgresql