Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
name: Coding Standards
|
|
|
|
|
|
|
|
on:
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.5 branch.
This backports several build and test tool improvements to the 4.5 branch. Most notably, this includes:
- The changes required to allow each workflow to be triggered by the `workflow_dispatch` event so that tests can be run on a schedule [50590].
- Splitting single site and multisite tests into parallel jobs [50379].
- Split slow tests into separate, parallel jobs for PHP <= 5.6 [50444].
- Better branch and path scoping for GitHub Action workflows when running on `pull_request` [50432,50479].
- Several `devDependency` updates.
Merges [50379,50387,50416,50432,50435,50436,50444,50446,50473,50474,50476,50479,50485,50486,50487,50545,50579,50590] to the 4.5 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50638 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:39:31 +00:00
|
|
|
# JSHint was introduced in WordPress 3.8.
|
|
|
|
# PHPCS checking was introduced in WordPress 5.1.
|
Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
push:
|
|
|
|
branches:
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.5 branch.
This backports several build and test tool improvements to the 4.5 branch. Most notably, this includes:
- The changes required to allow each workflow to be triggered by the `workflow_dispatch` event so that tests can be run on a schedule [50590].
- Splitting single site and multisite tests into parallel jobs [50379].
- Split slow tests into separate, parallel jobs for PHP <= 5.6 [50444].
- Better branch and path scoping for GitHub Action workflows when running on `pull_request` [50432,50479].
- Several `devDependency` updates.
Merges [50379,50387,50416,50432,50435,50436,50444,50446,50473,50474,50476,50479,50485,50486,50487,50545,50579,50590] to the 4.5 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50638 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:39:31 +00:00
|
|
|
- trunk
|
Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
- '3.[89]'
|
|
|
|
- '[4-9].[0-9]'
|
|
|
|
tags:
|
Build/Test Tools: Backport updates to GitHub Actions.
This backports several changesets to GitHub Actions workflows. These changesets:
- address the deprecated notices related to save-output and set-output to ensure the workflows continue to run after these are removed.
- adds support for automatically retrying a failed workflow once.
- removes workflow files that are not applicable to the branch.
- backports some Docker environment related tooling updates for the sake of consistency across branches.
Merges [53736], [53737], [53940], [53947], [54039], [54096], [54108], [54293], [54313], [54342], [54343], [54373], [54511], [54650], [54651], [54674], [54750], [54852], [55152], [54651], [55487] to the 4.5 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@55531 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:55 +00:00
|
|
|
- '[0-9]+.[0-9]'
|
|
|
|
- '[0-9]+.[0-9].[0-9]+'
|
|
|
|
- '!3.7.[0-9]+'
|
Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
pull_request:
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.5 branch.
This backports several build and test tool improvements to the 4.5 branch. Most notably, this includes:
- The changes required to allow each workflow to be triggered by the `workflow_dispatch` event so that tests can be run on a schedule [50590].
- Splitting single site and multisite tests into parallel jobs [50379].
- Split slow tests into separate, parallel jobs for PHP <= 5.6 [50444].
- Better branch and path scoping for GitHub Action workflows when running on `pull_request` [50432,50479].
- Several `devDependency` updates.
Merges [50379,50387,50416,50432,50435,50436,50444,50446,50473,50474,50476,50479,50485,50486,50487,50545,50579,50590] to the 4.5 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50638 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:39:31 +00:00
|
|
|
branches:
|
|
|
|
- trunk
|
|
|
|
- '3.[89]'
|
|
|
|
- '[4-9].[0-9]'
|
|
|
|
paths:
|
|
|
|
# Any change to a PHP or JavaScript file should run checks.
|
|
|
|
- '**.js'
|
|
|
|
- '**.php'
|
Build/Test Tools: Backport updates to GitHub Actions.
This backports several changesets to GitHub Actions workflows. These changesets:
- address the deprecated notices related to save-output and set-output to ensure the workflows continue to run after these are removed.
- adds support for automatically retrying a failed workflow once.
- removes workflow files that are not applicable to the branch.
- backports some Docker environment related tooling updates for the sake of consistency across branches.
Merges [53736], [53737], [53940], [53947], [54039], [54096], [54108], [54293], [54313], [54342], [54343], [54373], [54511], [54650], [54651], [54674], [54750], [54852], [55152], [54651], [55487] to the 4.5 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@55531 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:55 +00:00
|
|
|
# These files configure npm. Changes could affect the outcome.
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.5 branch.
This backports several build and test tool improvements to the 4.5 branch. Most notably, this includes:
- The changes required to allow each workflow to be triggered by the `workflow_dispatch` event so that tests can be run on a schedule [50590].
- Splitting single site and multisite tests into parallel jobs [50379].
- Split slow tests into separate, parallel jobs for PHP <= 5.6 [50444].
- Better branch and path scoping for GitHub Action workflows when running on `pull_request` [50432,50479].
- Several `devDependency` updates.
Merges [50379,50387,50416,50432,50435,50436,50444,50446,50473,50474,50476,50479,50485,50486,50487,50545,50579,50590] to the 4.5 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50638 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:39:31 +00:00
|
|
|
- 'package*.json'
|
|
|
|
# These files configure Composer. Changes could affect the outcome.
|
|
|
|
- 'composer.*'
|
|
|
|
# This file configures JSHint. Changes could affect the outcome.
|
|
|
|
- '.jshintrc'
|
|
|
|
# This file configures PHPCS. Changes could affect the outcome.
|
|
|
|
- 'phpcs.xml.dist'
|
|
|
|
# Changes to workflow files should always verify all workflows are successful.
|
|
|
|
- '.github/workflows/*.yml'
|
|
|
|
workflow_dispatch:
|
Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
|
Build/Test Tools: Use the Slack notifications workflow as a reusable one.
This backports several changesets that are required to remove the reliance on the `workflow_run` event for posting Slack notifications.
The Slack notification workflow will now be called as a reusable one, which has several benefits (see [53591]).
Several other minor GitHub Actions related updates are also being backported in this commit to maintain tooling consistency across branches that still receive security updates as a courtesy when necessary.
Workflows that are not relevant to this branch that were mistakenly backported are also being deleted.
Merges [50473], [50704], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.5 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@53616 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:19:15 +00:00
|
|
|
# Cancels all previous workflow runs for pull requests that have not completed.
|
|
|
|
concurrency:
|
|
|
|
# The concurrency group contains the workflow name and the branch name for pull requests
|
|
|
|
# or the commit hash for any other events.
|
|
|
|
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
jobs:
|
|
|
|
# Runs the JavaScript coding standards checks.
|
|
|
|
#
|
|
|
|
# JSHint violations are not currently reported inline with annotations.
|
|
|
|
#
|
|
|
|
# Performs the following steps:
|
|
|
|
# - Checks out the repository.
|
Build/Test Tools: Use the Slack notifications workflow as a reusable one.
This backports several changesets that are required to remove the reliance on the `workflow_run` event for posting Slack notifications.
The Slack notification workflow will now be called as a reusable one, which has several benefits (see [53591]).
Several other minor GitHub Actions related updates are also being backported in this commit to maintain tooling consistency across branches that still receive security updates as a courtesy when necessary.
Workflows that are not relevant to this branch that were mistakenly backported are also being deleted.
Merges [50473], [50704], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.5 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@53616 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:19:15 +00:00
|
|
|
# - Logs debug information about the GitHub Action runner.
|
|
|
|
# - Installs NodeJS.
|
Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
# - Logs updated debug information.
|
Build/Test Tools: Backport updates to GitHub Actions.
This backports several changesets to GitHub Actions workflows. These changesets:
- address the deprecated notices related to save-output and set-output to ensure the workflows continue to run after these are removed.
- adds support for automatically retrying a failed workflow once.
- removes workflow files that are not applicable to the branch.
- backports some Docker environment related tooling updates for the sake of consistency across branches.
Merges [53736], [53737], [53940], [53947], [54039], [54096], [54108], [54293], [54313], [54342], [54343], [54373], [54511], [54650], [54651], [54674], [54750], [54852], [55152], [54651], [55487] to the 4.5 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@55531 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:55 +00:00
|
|
|
# _ Installs npm dependencies.
|
Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
# - Run the WordPress JSHint checks.
|
|
|
|
jshint:
|
|
|
|
name: JavaScript coding standards
|
|
|
|
runs-on: ubuntu-latest
|
Build/Test Tools: Use the Slack notifications workflow as a reusable one.
This backports several changesets that are required to remove the reliance on the `workflow_run` event for posting Slack notifications.
The Slack notification workflow will now be called as a reusable one, which has several benefits (see [53591]).
Several other minor GitHub Actions related updates are also being backported in this commit to maintain tooling consistency across branches that still receive security updates as a courtesy when necessary.
Workflows that are not relevant to this branch that were mistakenly backported are also being deleted.
Merges [50473], [50704], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.5 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@53616 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:19:15 +00:00
|
|
|
timeout-minutes: 20
|
Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
|
|
|
|
env:
|
|
|
|
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
Build/Test Tools: Backport updates to GitHub Actions.
This backports several changesets to GitHub Actions workflows. These changesets:
- address the deprecated notices related to save-output and set-output to ensure the workflows continue to run after these are removed.
- adds support for automatically retrying a failed workflow once.
- removes workflow files that are not applicable to the branch.
- backports some Docker environment related tooling updates for the sake of consistency across branches.
Merges [53736], [53737], [53940], [53947], [54039], [54096], [54108], [54293], [54313], [54342], [54343], [54373], [54511], [54650], [54651], [54674], [54750], [54852], [55152], [54651], [55487] to the 4.5 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@55531 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:55 +00:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
|
|
|
|
- name: Log debug information
|
|
|
|
run: |
|
|
|
|
npm --version
|
|
|
|
node --version
|
|
|
|
git --version
|
|
|
|
svn --version
|
|
|
|
|
Build/Test Tools: Backport updates to GitHub Actions.
This backports several changesets to GitHub Actions workflows. These changesets:
- address the deprecated notices related to save-output and set-output to ensure the workflows continue to run after these are removed.
- adds support for automatically retrying a failed workflow once.
- removes workflow files that are not applicable to the branch.
- backports some Docker environment related tooling updates for the sake of consistency across branches.
Merges [53736], [53737], [53940], [53947], [54039], [54096], [54108], [54293], [54313], [54342], [54343], [54373], [54511], [54650], [54651], [54674], [54750], [54852], [55152], [54651], [55487] to the 4.5 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@55531 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:55 +00:00
|
|
|
- name: Set up Node.js
|
|
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
with:
|
Build/Test Tools: Use the Slack notifications workflow as a reusable one.
This backports several changesets that are required to remove the reliance on the `workflow_run` event for posting Slack notifications.
The Slack notification workflow will now be called as a reusable one, which has several benefits (see [53591]).
Several other minor GitHub Actions related updates are also being backported in this commit to maintain tooling consistency across branches that still receive security updates as a courtesy when necessary.
Workflows that are not relevant to this branch that were mistakenly backported are also being deleted.
Merges [50473], [50704], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.5 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@53616 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:19:15 +00:00
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
cache: npm
|
Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
|
|
|
|
- name: Log debug information
|
|
|
|
run: |
|
|
|
|
npm --version
|
|
|
|
node --version
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.5 branch.
This backports several build and test tool improvements to the 4.5 branch. Most notably, this includes:
- The changes required to allow each workflow to be triggered by the `workflow_dispatch` event so that tests can be run on a schedule [50590].
- Splitting single site and multisite tests into parallel jobs [50379].
- Split slow tests into separate, parallel jobs for PHP <= 5.6 [50444].
- Better branch and path scoping for GitHub Action workflows when running on `pull_request` [50432,50479].
- Several `devDependency` updates.
Merges [50379,50387,50416,50432,50435,50436,50444,50446,50473,50474,50476,50479,50485,50486,50487,50545,50579,50590] to the 4.5 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50638 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:39:31 +00:00
|
|
|
run: npm ci
|
Build/Test Tools: Restore automated testing in the 4.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.5 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@50313 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:00:11 +00:00
|
|
|
|
|
|
|
- name: Run JSHint
|
|
|
|
run: npm run grunt jshint
|
Build/Test Tools: Use the Slack notifications workflow as a reusable one.
This backports several changesets that are required to remove the reliance on the `workflow_run` event for posting Slack notifications.
The Slack notification workflow will now be called as a reusable one, which has several benefits (see [53591]).
Several other minor GitHub Actions related updates are also being backported in this commit to maintain tooling consistency across branches that still receive security updates as a courtesy when necessary.
Workflows that are not relevant to this branch that were mistakenly backported are also being deleted.
Merges [50473], [50704], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.5 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@53616 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:19:15 +00:00
|
|
|
|
|
|
|
slack-notifications:
|
|
|
|
name: Slack Notifications
|
|
|
|
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
|
|
|
|
needs: [ jshint ]
|
|
|
|
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
|
|
|
|
with:
|
|
|
|
calling_status: ${{ needs.jshint.result == 'success' && 'success' || needs.jshint.result == 'cancelled' && 'cancelled' || 'failure' }}
|
|
|
|
secrets:
|
|
|
|
SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
|
|
|
|
SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
|
|
|
|
SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
|
|
|
|
SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
|
Build/Test Tools: Backport updates to GitHub Actions.
This backports several changesets to GitHub Actions workflows. These changesets:
- address the deprecated notices related to save-output and set-output to ensure the workflows continue to run after these are removed.
- adds support for automatically retrying a failed workflow once.
- removes workflow files that are not applicable to the branch.
- backports some Docker environment related tooling updates for the sake of consistency across branches.
Merges [53736], [53737], [53940], [53947], [54039], [54096], [54108], [54293], [54313], [54342], [54343], [54373], [54511], [54650], [54651], [54674], [54750], [54852], [55152], [54651], [55487] to the 4.5 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.5@55531 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:55 +00:00
|
|
|
|
|
|
|
failed-workflow:
|
|
|
|
name: Failed workflow tasks
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: [ jshint, slack-notifications ]
|
|
|
|
if: |
|
|
|
|
always() &&
|
|
|
|
github.repository == 'WordPress/wordpress-develop' &&
|
|
|
|
github.event_name != 'pull_request' &&
|
|
|
|
github.run_attempt < 2 &&
|
|
|
|
(
|
|
|
|
needs.jshint.result == 'cancelled' || needs.jshint.result == 'failure'
|
|
|
|
)
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Dispatch workflow run
|
|
|
|
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
|
|
|
|
with:
|
|
|
|
retries: 2
|
|
|
|
retry-exempt-status-codes: 418
|
|
|
|
script: |
|
|
|
|
github.rest.actions.createWorkflowDispatch({
|
|
|
|
owner: context.repo.owner,
|
|
|
|
repo: context.repo.repo,
|
|
|
|
workflow_id: 'failed-workflow.yml',
|
|
|
|
ref: 'trunk',
|
|
|
|
inputs: {
|
|
|
|
run_id: '${{ github.run_id }}'
|
|
|
|
}
|
|
|
|
});
|