mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Build/Test Tools: Lower the timeout for GitHub Actions jobs so runaway or stalled processes don't risk running for the default timeout duration of six hours.
See #53363 git-svn-id: https://develop.svn.wordpress.org/trunk@52233 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a86125d5c1
commit
7a70bc55dc
2
.github/workflows/coding-standards.yml
vendored
2
.github/workflows/coding-standards.yml
vendored
@ -58,6 +58,7 @@ jobs:
|
||||
phpcs:
|
||||
name: PHP coding standards
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
|
||||
|
||||
steps:
|
||||
@ -123,6 +124,7 @@ jobs:
|
||||
jshint:
|
||||
name: JavaScript coding standards
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
|
||||
env:
|
||||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}
|
||||
|
||||
1
.github/workflows/end-to-end-tests.yml
vendored
1
.github/workflows/end-to-end-tests.yml
vendored
@ -47,6 +47,7 @@ jobs:
|
||||
e2e-tests:
|
||||
name: E2E Tests
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
|
||||
|
||||
steps:
|
||||
|
||||
1
.github/workflows/javascript-tests.yml
vendored
1
.github/workflows/javascript-tests.yml
vendored
@ -51,6 +51,7 @@ jobs:
|
||||
test-js:
|
||||
name: QUnit Tests
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
|
||||
|
||||
steps:
|
||||
|
||||
1
.github/workflows/php-compatibility.yml
vendored
1
.github/workflows/php-compatibility.yml
vendored
@ -52,6 +52,7 @@ jobs:
|
||||
php-compatibility:
|
||||
name: Check PHP compatibility
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
|
||||
|
||||
steps:
|
||||
|
||||
1
.github/workflows/phpunit-tests.yml
vendored
1
.github/workflows/phpunit-tests.yml
vendored
@ -60,6 +60,7 @@ jobs:
|
||||
test-php:
|
||||
name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.split_slow && ' slow tests' || '' }}${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 20
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
5
.github/workflows/slack-notifications.yml
vendored
5
.github/workflows/slack-notifications.yml
vendored
@ -61,6 +61,7 @@ jobs:
|
||||
prepare:
|
||||
name: Prepare notifications
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event.workflow_run.event != 'pull_request' }}
|
||||
outputs:
|
||||
previous_conclusion: ${{ steps.previous-conclusion.outputs.previous_conclusion }}
|
||||
@ -129,6 +130,7 @@ jobs:
|
||||
failure:
|
||||
name: Failure notifications
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
needs: [ prepare ]
|
||||
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'failure' || inputs.calling_status == 'failure' || failure() }}
|
||||
|
||||
@ -144,6 +146,7 @@ jobs:
|
||||
fixed:
|
||||
name: Fixed notifications
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
needs: [ prepare ]
|
||||
if: ${{ needs.prepare.outputs.previous_conclusion == 'failure' && ( github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' || inputs.calling_status == 'success' ) && success() }}
|
||||
|
||||
@ -159,6 +162,7 @@ jobs:
|
||||
success:
|
||||
name: Success notifications
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
needs: [ prepare ]
|
||||
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' || inputs.calling_status == 'success' && success() }}
|
||||
|
||||
@ -174,6 +178,7 @@ jobs:
|
||||
cancelled:
|
||||
name: Cancelled notifications
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
needs: [ prepare ]
|
||||
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'cancelled' || inputs.calling_status == 'cancelled' || cancelled() }}
|
||||
|
||||
|
||||
1
.github/workflows/test-coverage.yml
vendored
1
.github/workflows/test-coverage.yml
vendored
@ -47,6 +47,7 @@ jobs:
|
||||
test-coverage-report:
|
||||
name: ${{ matrix.multisite && 'Multisite' || 'Single site' }} report
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
2
.github/workflows/test-npm.yml
vendored
2
.github/workflows/test-npm.yml
vendored
@ -50,6 +50,7 @@ jobs:
|
||||
test-npm:
|
||||
name: Test NPM on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 20
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@ -113,6 +114,7 @@ jobs:
|
||||
test-npm-macos:
|
||||
name: Test NPM on MacOS
|
||||
runs-on: macos-latest
|
||||
timeout-minutes: 20
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
1
.github/workflows/test-old-branches.yml
vendored
1
.github/workflows/test-old-branches.yml
vendored
@ -16,6 +16,7 @@ jobs:
|
||||
dispatch-workflows-for-old-branches:
|
||||
name: ${{ matrix.workflow }} for ${{ matrix.branch }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
@ -8,6 +8,7 @@ jobs:
|
||||
# Comments on a pull request when the author is a new contributor.
|
||||
post-welcome-message:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
|
||||
|
||||
steps:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user