From 14c3fb1d433ea17ff295acc6f5f1cd17af77c905 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 12 Feb 2021 16:01:54 +0000 Subject: [PATCH] Build/Test Tools: Run automated testing when tags are created. This expands the list of events that triggers automated testing to include tags. It also refines the matched version ranges for several workflows. See #50401. git-svn-id: https://develop.svn.wordpress.org/trunk@50298 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/coding-standards.yml | 8 ++++++-- .github/workflows/end-to-end-tests.yml | 5 ++++- .github/workflows/javascript-tests.yml | 7 ++++++- .github/workflows/php-compatibility.yml | 5 ++++- .github/workflows/phpunit-tests.yml | 6 +++++- .github/workflows/verify-npm-on-windows.yml | 3 ++- 6 files changed, 27 insertions(+), 7 deletions(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index d286f5abf6..106b0eddbe 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -4,9 +4,13 @@ on: push: branches: - master + # JSHint was introduced in WordPress 3.8. # PHPCS checking was introduced in WordPress 5.1. - - '5.[1-9]' - - '[6-9].*' + - '3.[89]' + - '[4-9].[0-9]' + tags: + - '3.[89]*' + - '[4-9].[0-9]*' pull_request: jobs: diff --git a/.github/workflows/end-to-end-tests.yml b/.github/workflows/end-to-end-tests.yml index 131dd6fa41..f895e9c3f6 100644 --- a/.github/workflows/end-to-end-tests.yml +++ b/.github/workflows/end-to-end-tests.yml @@ -6,7 +6,10 @@ on: - master # The end to end test suite was introduced in WordPress 5.3. - '5.[3-9]' - - '[6-9].*' + - '[6-9].[0-9]' + tags: + - '5.[3-9]*' + - '[6-9].[0-9]*' pull_request: env: diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index caba388d9f..31dc88fe3e 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -4,7 +4,12 @@ on: push: branches: - master - - '*.*' + # JavaScript testing was introduced in WordPress 3.8. + - '3.[89]' + - '[4-9].[0-9]' + tags: + - '3.[89]*' + - '[4-9].[0-9]*' pull_request: jobs: diff --git a/.github/workflows/php-compatibility.yml b/.github/workflows/php-compatibility.yml index 6c3fb82ceb..d213c2612f 100644 --- a/.github/workflows/php-compatibility.yml +++ b/.github/workflows/php-compatibility.yml @@ -6,7 +6,10 @@ on: - master # The PHP compatibility testing was introduced in WordPress 5.5. - '5.[5-9]' - - '[6-9].*' + - '[6-9].[0-9]' + tags: + - '5.[5-9]*' + - '[6-9].[0-9]*' pull_request: jobs: diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index d6f1ed9bc2..a55ca8c642 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -4,7 +4,11 @@ on: push: branches: - master - - '*.*' + - '3.[7-9]' + - '[4-9].[0-9]' + tags: + - '3.[7-9]*' + - '[4-9].[0-9]*' pull_request: # Once weekly On Sundays at 00:00 UTC. schedule: diff --git a/.github/workflows/verify-npm-on-windows.yml b/.github/workflows/verify-npm-on-windows.yml index 3b3c4b22eb..adc3f84b5b 100644 --- a/.github/workflows/verify-npm-on-windows.yml +++ b/.github/workflows/verify-npm-on-windows.yml @@ -4,7 +4,8 @@ on: push: branches: - master - - '*.*' + - '3.[7-9]' + - '[4-9].[0-9]' pull_request: env: