Commit 398b698a8bb for woocommerce
commit 398b698a8bbe963b02eb09b6b511c7e21bd519cb
Author: Rafael Meneses <meneses.tio@gmail.com>
Date: Fri Oct 30 13:43:11 2026 -0300
Allow private repository PR E2E tests 30 minutes (#70428)
fix(ci): allow private PR E2E steps 30 minutes
Private repositories use smaller standard GitHub-hosted runners. A complete E2E suite can exceed the shared 20-minute PR step limit there, ending the job without a test result.
Give private-repository PR E2E steps 30 minutes while retaining 20 minutes for public PRs. The PHP unit-test limit and 35-minute job cap stay the same. A stalled private E2E step can now run up to ten minutes longer.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a866ad87847..eae837ad359 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -447,7 +447,7 @@ jobs:
path: '${{ runner.temp }}/last-run-info'
- name: 'Run tests (${{ matrix.testType }})'
- timeout-minutes: ${{ ( github.event_name == 'pull_request' && ( ( matrix.testType == 'e2e' && 20 ) || ( matrix.testType == 'unit:php' && 25 ) ) ) || 360 }}
+ timeout-minutes: ${{ ( github.event_name == 'pull_request' && ( ( matrix.testType == 'e2e' && ( github.event.repository.private && 30 || 20 ) ) || ( matrix.testType == 'unit:php' && 25 ) ) ) || 360 }}
env:
E2E_ENV_KEY: ${{ secrets.E2E_ENV_KEY }}
CODEVITALS_PROJECT_TOKEN: ${{ secrets.CODEVITALS_PROJECT_TOKEN }} # required by Metrics tests