Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
name: PHPUnit Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
- trunk
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
- '3.[7-9]'
|
|
|
|
- '[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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
- '[0-9]+.[0-9]'
|
|
|
|
- '[0-9]+.[0-9].[0-9]+'
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
pull_request:
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
branches:
|
|
|
|
- trunk
|
|
|
|
- '3.[7-9]'
|
|
|
|
- '[4-9].[0-9]'
|
|
|
|
workflow_dispatch:
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
# Once weekly On Sundays at 00:00 UTC.
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * 0'
|
|
|
|
|
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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +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.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
env:
|
|
|
|
LOCAL_DIR: build
|
|
|
|
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}
|
|
|
|
COMPOSER_INSTALL: ${{ false }}
|
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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
# Controls which npm script to use for running PHPUnit tests. Options ar `php` and `php-composer`.
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
PHPUNIT_SCRIPT: php
|
|
|
|
LOCAL_PHP_MEMCACHED: ${{ false }}
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
SLOW_TESTS: 'external-http,media'
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
# Sets up WordPress for testing or development use.
|
|
|
|
#
|
|
|
|
# Performs the following steps:
|
|
|
|
# - Cancels all previous workflow runs for pull requests that have not completed.
|
|
|
|
# - 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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
# - Logs debug information about the GitHub Action runner.
|
|
|
|
# - Installs NodeJS.
|
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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
# _ Installs npm dependencies.
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
# - Builds WordPress to run from the `build` directory.
|
|
|
|
# - Creates a ZIP file of compiled WordPress.
|
|
|
|
# - Uploads ZIP file as an artifact.
|
|
|
|
setup-wordpress:
|
|
|
|
name: Setup WordPress
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
|
|
|
|
|
|
|
|
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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
|
|
|
|
- name: Log debug information
|
|
|
|
run: |
|
|
|
|
echo "$GITHUB_REF"
|
|
|
|
echo "$GITHUB_EVENT_NAME"
|
|
|
|
npm --version
|
|
|
|
node --version
|
|
|
|
curl --version
|
|
|
|
git --version
|
|
|
|
svn --version
|
|
|
|
php --version
|
|
|
|
php -i
|
|
|
|
locale -a
|
|
|
|
|
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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
- name: Set up Node.js
|
|
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
cache: npm
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
|
|
|
|
- name: Install Dependencies
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
run: npm ci
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
|
|
|
|
- name: Build WordPress
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
- name: Create ZIP artifact
|
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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
uses: thedoctor0/zip-release@a24011d8d445e4da5935a7e73c1f98e22a439464 # v0.7.1
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
with:
|
|
|
|
filename: built-wp-${{ github.sha }}.zip
|
|
|
|
exclusions: '*.git* /*node_modules/* packagehash.txt'
|
|
|
|
|
|
|
|
- name: Upload build artifact
|
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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
with:
|
|
|
|
name: built-wp-${{ github.sha }}
|
|
|
|
path: built-wp-${{ github.sha }}.zip
|
|
|
|
if-no-files-found: error
|
|
|
|
|
|
|
|
# Runs the PHPUnit tests for WordPress.
|
|
|
|
#
|
|
|
|
# Performs the following steps:
|
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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
# - Sets environment variables.
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
# - Sets up the environment variables needed for testing with memcached (if desired).
|
|
|
|
# - Downloads the built WordPress artifact from the previous job.
|
|
|
|
# - Unzips the artifact.
|
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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
# - Installs NodeJS.
|
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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
# _ Installs npm dependencies.
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
# - Configures caching for Composer.
|
|
|
|
# _ Installs Composer dependencies (if desired).
|
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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
# - Logs Docker debug information (about the Docker installation within the runner).
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
# - Starts the WordPress Docker container.
|
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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
# - Starts the Memcached server after the Docker network has been created (if desired).
|
|
|
|
# - Logs general debug information about the runner.
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
# - Logs the running Docker containers.
|
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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
# - Logs debug information from inside the WordPress Docker container.
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
# - Logs debug information about what's installed within the WordPress Docker containers.
|
|
|
|
# - Install WordPress within the Docker container.
|
|
|
|
# - Run the PHPUnit tests.
|
|
|
|
# - Checks out the WordPress Test reporter repository.
|
|
|
|
# - Reconnect the directory to the Git repository.
|
|
|
|
# - Submit the test results to the WordPress.org host test results.
|
|
|
|
test-php:
|
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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.split_slow && ' slow tests' || '' }}${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }}
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
needs: setup-wordpress
|
|
|
|
runs-on: ${{ matrix.os }}
|
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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
timeout-minutes: 20
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
strategy:
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
fail-fast: false
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
matrix:
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
php: [ '5.3', '5.4', '5.5' ]
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
os: [ ubuntu-latest ]
|
|
|
|
memcached: [ false ]
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
split_slow: [ false, true ]
|
|
|
|
multisite: [ false, true ]
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
include:
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
# Additional "slow" jobs for PHP 5.6.
|
|
|
|
- php: '5.6'
|
|
|
|
phpunit: '4-php-5.6'
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
os: ubuntu-latest
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
memcached: false
|
|
|
|
multisite: false
|
|
|
|
split_slow: true
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
- php: '5.6'
|
|
|
|
phpunit: '4-php-5.6'
|
|
|
|
os: ubuntu-latest
|
|
|
|
memcached: false
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
multisite: true
|
|
|
|
split_slow: true
|
|
|
|
# Include job for specific PHPUnit versions.
|
|
|
|
- php: '7.0'
|
|
|
|
phpunit: '5-php-7.0'
|
|
|
|
os: ubuntu-latest
|
|
|
|
memcached: false
|
|
|
|
multisite: false
|
|
|
|
split_slow: false
|
|
|
|
- php: '7.0'
|
|
|
|
phpunit: '5-php-7.0'
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
os: ubuntu-latest
|
|
|
|
memcached: false
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
multisite: true
|
|
|
|
split_slow: false
|
|
|
|
- php: '5.6'
|
|
|
|
phpunit: '4-php-5.6'
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
os: ubuntu-latest
|
|
|
|
memcached: false
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
multisite: false
|
|
|
|
split_slow: false
|
|
|
|
- php: '5.6'
|
|
|
|
phpunit: '4-php-5.6'
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
os: ubuntu-latest
|
|
|
|
memcached: false
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
multisite: true
|
|
|
|
split_slow: false
|
|
|
|
# Include job for PHP 7.0 with memcached.
|
|
|
|
- php: '7.0'
|
|
|
|
phpunit: '5-php-7.0'
|
|
|
|
os: ubuntu-latest
|
|
|
|
memcached: true
|
|
|
|
multisite: false
|
|
|
|
split_slow: false
|
|
|
|
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
env:
|
|
|
|
LOCAL_PHP: ${{ matrix.php }}-fpm
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
LOCAL_PHPUNIT: ${{ matrix.phpunit && matrix.phpunit || matrix.php }}-fpm
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
LOCAL_PHP_MEMCACHED: ${{ matrix.memcached }}
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
PHPUNIT_CONFIG: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }}
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Configure environment variables
|
|
|
|
run: |
|
|
|
|
echo "PHP_FPM_UID=$(id -u)" >> $GITHUB_ENV
|
|
|
|
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: Download the built WordPress artifact
|
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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
with:
|
|
|
|
name: built-wp-${{ github.sha }}
|
|
|
|
|
|
|
|
- name: Unzip built artifact
|
|
|
|
run: unzip built-wp-${{ github.sha }}.zip
|
|
|
|
|
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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
- name: Set up Node.js
|
|
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
cache: npm
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
|
|
|
|
- name: Install Dependencies
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
run: npm ci
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
|
|
|
|
- name: Cache Composer dependencies
|
|
|
|
if: ${{ env.COMPOSER_INSTALL == true }}
|
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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
env:
|
|
|
|
cache-name: cache-composer-dependencies
|
|
|
|
with:
|
|
|
|
path: ${{ steps.composer-cache.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
|
|
|
|
|
|
|
|
- name: Install Composer dependencies
|
|
|
|
if: ${{ env.COMPOSER_INSTALL == true }}
|
|
|
|
run: |
|
|
|
|
docker-compose run --rm php composer --version
|
|
|
|
docker-compose run --rm php composer install
|
|
|
|
|
|
|
|
- name: Docker debug information
|
|
|
|
run: |
|
|
|
|
docker -v
|
|
|
|
docker-compose -v
|
|
|
|
|
|
|
|
- name: Start Docker environment
|
|
|
|
run: |
|
|
|
|
npm run env:start
|
|
|
|
|
|
|
|
# The memcached server needs to start after the Docker network has been set up with `npm run env:start`.
|
|
|
|
- name: Start the Memcached server.
|
|
|
|
if: ${{ matrix.memcached }}
|
|
|
|
run: |
|
|
|
|
cp tests/phpunit/includes/object-cache.php build/wp-content/object-cache.php
|
|
|
|
docker run --name memcached --net $(basename "$PWD")_wpdevnet -d memcached
|
|
|
|
|
|
|
|
- name: General debug information
|
|
|
|
run: |
|
|
|
|
npm --version
|
|
|
|
node --version
|
|
|
|
curl --version
|
|
|
|
git --version
|
|
|
|
svn --version
|
|
|
|
|
|
|
|
- name: Log running Docker containers
|
|
|
|
run: docker ps -a
|
|
|
|
|
|
|
|
- name: WordPress Docker container debug information
|
|
|
|
run: |
|
|
|
|
docker-compose run --rm mysql mysql --version
|
|
|
|
docker-compose run --rm php php --version
|
|
|
|
docker-compose run --rm php php -m
|
|
|
|
docker-compose run --rm php php -i
|
|
|
|
docker-compose run --rm php locale -a
|
|
|
|
|
|
|
|
- name: Install WordPress
|
|
|
|
run: npm run env:install
|
|
|
|
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
- name: Run slow PHPUnit tests
|
|
|
|
if: ${{ matrix.split_slow }}
|
|
|
|
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ${{ env.SLOW_TESTS }}
|
|
|
|
|
|
|
|
- name: Run PHPUnit tests for single site excluding slow tests
|
|
|
|
if: ${{ matrix.php < '7.0' && ! matrix.split_slow && ! matrix.multisite }}
|
|
|
|
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --exclude-group ${{ env.SLOW_TESTS }},ajax,ms-files,ms-required
|
|
|
|
|
|
|
|
- name: Run PHPUnit tests for Multisite excluding slow tests
|
|
|
|
if: ${{ matrix.php < '7.0' && ! matrix.split_slow && matrix.multisite }}
|
|
|
|
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --exclude-group ${{ env.SLOW_TESTS }},ajax,ms-files,ms-excluded,oembed-headers
|
|
|
|
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
- name: Run PHPUnit tests
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
if: ${{ matrix.php >= '7.0' }}
|
|
|
|
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }}
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
|
|
|
|
- name: Run AJAX tests
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
if: ${{ ! matrix.multisite && ! matrix.split_slow }}
|
|
|
|
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ajax
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
|
|
|
|
- name: Run ms-files tests as a multisite install
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
if: ${{ matrix.multisite && ! matrix.split_slow }}
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --group ms-files
|
|
|
|
|
|
|
|
- name: Run external HTTP tests
|
Build/Test Tools: Backport GitHub Action and build improvements to the 4.6 branch.
This backports several build and test tool improvements to the 4.6 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.6 branch.
See #50401, #51801, #51802, #52548, #52612, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50637 602fd350-edb4-49c9-b593-d223f7449a82
2021-04-02 15:33:14 +00:00
|
|
|
if: ${{ ! matrix.multisite && ! matrix.split_slow }}
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --group external-http
|
|
|
|
|
|
|
|
- name: Checkout the WordPress Test Reporter
|
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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }}
|
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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
with:
|
|
|
|
repository: 'WordPress/phpunit-test-runner'
|
|
|
|
path: 'test-runner'
|
|
|
|
|
|
|
|
- name: Set up the Git 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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }}
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
run: |
|
|
|
|
git init
|
|
|
|
git remote add origin https://github.com/WordPress/wordpress-develop.git
|
|
|
|
git fetch
|
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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
git reset origin/trunk
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
|
|
|
|
- name: Submit test results to the WordPress.org host test results
|
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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }}
|
Build/Test Tools: Restore automated testing in the 4.6 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.6 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@50311 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:48:05 +00:00
|
|
|
env:
|
|
|
|
WPT_REPORT_API_KEY: "${{ secrets.WPT_REPORT_API_KEY }}"
|
|
|
|
run: docker-compose run --rm -e WPT_REPORT_API_KEY -e WPT_PREPARE_DIR=/var/www -e WPT_TEST_DIR=/var/www php php test-runner/report.php
|
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], [50796], [50930], [51341], [51355], [51498], [51511], [51535], [51924], [51925], [51937], [52002], [52130], [52183], [52233], [53112], [53581], [53582], [53592] to the 4.6 branch.
See #56095.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@53615 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-30 17:18:38 +00:00
|
|
|
|
|
|
|
slack-notifications:
|
|
|
|
name: Slack Notifications
|
|
|
|
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
|
|
|
|
needs: [ setup-wordpress, test-php ]
|
|
|
|
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
|
|
|
|
with:
|
|
|
|
calling_status: ${{ needs.test-php.result == 'success' && 'success' || needs.test-php.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.6 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.6@55530 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:29:42 +00:00
|
|
|
|
|
|
|
failed-workflow:
|
|
|
|
name: Failed workflow tasks
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: [ test-php, slack-notifications ]
|
|
|
|
if: |
|
|
|
|
always() &&
|
|
|
|
github.repository == 'WordPress/wordpress-develop' &&
|
|
|
|
github.event_name != 'pull_request' &&
|
|
|
|
github.run_attempt < 2 &&
|
|
|
|
(
|
|
|
|
needs.test-php.result == 'cancelled' || needs.test-php.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 }}'
|
|
|
|
}
|
|
|
|
});
|