From 06de631792f756ebe2d8bf381cf84789ee619a47 Mon Sep 17 00:00:00 2001 From: abose Date: Thu, 12 Oct 2023 08:06:22 +0530 Subject: [PATCH] ci: three attempts for running integ tests on push --- .github/workflows/playwright-on-push.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/playwright-on-push.yml b/.github/workflows/playwright-on-push.yml index d5b563084..7c5b57cf9 100644 --- a/.github/workflows/playwright-on-push.yml +++ b/.github/workflows/playwright-on-push.yml @@ -28,7 +28,7 @@ jobs: run: npm run testFirefox testFirefoxInteg: - timeout-minutes: 60 + timeout-minutes: 90 runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -50,9 +50,16 @@ jobs: - name: Run Playwright integration tests in firefox Attempt 2 if: steps.attempt1.outcome == 'failure' + timeout-minutes: 30 + continue-on-error: true id: attempt2 run: npm run testIntegFirefox + - name: Run Playwright integration tests in firefox Attempt 3 + if: steps.attempt2.outcome == 'failure' + id: attempt3 + run: npm run testIntegFirefox + testChromiumUnit: timeout-minutes: 60 runs-on: ubuntu-latest @@ -72,7 +79,7 @@ jobs: run: npm run testChromium testChromiumInteg: - timeout-minutes: 60 + timeout-minutes: 90 runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -93,10 +100,17 @@ jobs: run: npm run testIntegChromium - name: Run Playwright integration tests in Chromium Attempt 2 + timeout-minutes: 30 + continue-on-error: true if: steps.attemptC1.outcome == 'failure' id: attemptC2 run: npm run testIntegChromium + - name: Run Playwright integration tests in Chromium Attempt 3 + if: steps.attemptC2.outcome == 'failure' + id: attemptC3 + run: npm run testIntegChromium + raiseIssue: needs: [ testFirefoxUnit, testFirefoxInteg, testChromiumUnit, testChromiumInteg] runs-on: ubuntu-latest