<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[55524] branches/5.1: Build/Test Tools: Backport updates to GitHub Actions.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/55524">55524</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/55524","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>desrosj</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2023-03-10 16:25:26 +0000 (Fri, 10 Mar 2023)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>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 <a href="https://core.trac.wordpress.org/changeset/53736">[53736]</a>, <a href="https://core.trac.wordpress.org/changeset/53737">[53737]</a>, <a href="https://core.trac.wordpress.org/changeset/53940">[53940]</a>, <a href="https://core.trac.wordpress.org/changeset/53947">[53947]</a>, <a href="https://core.trac.wordpress.org/changeset/54039">[54039]</a>, <a href="https://core.trac.wordpress.org/changeset/54096">[54096]</a>, <a href="https://core.trac.wordpress.org/changeset/54108">[54108]</a>, <a href="https://core.trac.wordpress.org/changeset/54293">[54293]</a>, <a href="https://core.trac.wordpress.org/changeset/54313">[54313]</a>, <a href="https://core.trac.wordpress.org/changeset/54342">[54342]</a>, <a href="https://core.trac.wordpress.org/changeset/54343">[54343]</a>, <a href="https://core.trac.wordpress.org/changeset/54373">[54373]</a>, <a href="https://core.trac.wordpress.org/changeset/54511">[54511]</a>, <a href="https://core.trac.wordpress.org/changeset/54650">[54650]</a
>, <a href="https://core.trac.wordpress.org/changeset/54651">[54651]</a>, <a href="https://core.trac.wordpress.org/changeset/54674">[54674]</a>, <a href="https://core.trac.wordpress.org/changeset/54750">[54750]</a>, <a href="https://core.trac.wordpress.org/changeset/54852">[54852]</a>, <a href="https://core.trac.wordpress.org/changeset/55152">[55152]</a>, <a href="https://core.trac.wordpress.org/changeset/54651">[54651]</a>, <a href="https://core.trac.wordpress.org/changeset/55487">[55487]</a> to the 5.1 branch.
See <a href="https://core.trac.wordpress.org/ticket/55652">#55652</a>, <a href="https://core.trac.wordpress.org/ticket/56407">#56407</a>, <a href="https://core.trac.wordpress.org/ticket/56528">#56528</a>, <a href="https://core.trac.wordpress.org/ticket/54695">#54695</a>, <a href="https://core.trac.wordpress.org/ticket/56820">#56820</a>, <a href="https://core.trac.wordpress.org/ticket/56816">#56816</a>, <a href="https://core.trac.wordpress.org/ticket/56793">#56793</a>, <a href="https://core.trac.wordpress.org/ticket/56820">#56820</a>, <a href="https://core.trac.wordpress.org/ticket/57572">#57572</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#branches51env">branches/5.1/.env</a></li>
<li><a href="#branches51githubworkflowscodingstandardsyml">branches/5.1/.github/workflows/coding-standards.yml</a></li>
<li><a href="#branches51githubworkflowsjavascripttestsyml">branches/5.1/.github/workflows/javascript-tests.yml</a></li>
<li><a href="#branches51githubworkflowsphpunittestsyml">branches/5.1/.github/workflows/phpunit-tests.yml</a></li>
<li><a href="#branches51githubworkflowstestnpmyml">branches/5.1/.github/workflows/test-npm.yml</a></li>
<li><a href="#branches51githubworkflowswelcomenewcontributorsyml">branches/5.1/.github/workflows/welcome-new-contributors.yml</a></li>
<li><a href="#branches51dockercomposeyml">branches/5.1/docker-compose.yml</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#branches51githubworkflowstestoldbranchesyml">branches/5.1/.github/workflows/test-old-branches.yml</a></li>
</ul>
<h3>Property Changed</h3>
<ul>
<li><a href="#branches51">branches/5.1/</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<span class="cx" style="display: block; padding: 0 10px">Index: branches/5.1
</span><span class="cx" style="display: block; padding: 0 10px">===================================================================
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">--- branches/5.1 2023-03-10 16:10:01 UTC (rev 55523)
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+++ branches/5.1 2023-03-10 16:25:26 UTC (rev 55524)
</ins><a id="branches51"></a>
<div class="propset"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Property changes: branches/5.1</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svnmergeinfo"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: svn:mergeinfo</h4></div>
<span class="cx" style="display: block; padding: 0 10px"> /branches/4.9:43557,43622
</span><span class="cx" style="display: block; padding: 0 10px"> /branches/5.0:43681-43682,43684-43688,43719-43720,43723,43726-43727,43729-43731,43734-43744,43747,43751-43754,43758,43760-43765,43767-43770,43772,43774-43781,43783,43785,43790-43806,43808-43821,43825,43828,43830-43834,43836-43843,43846-43863,43867-43889,43891-43894,43897-43905,43908-43909,43911-43929,43931-43942,43946-43947,43949-43956,43959-43964,43967-43969,43988,43994,44014,44017,44047,44183,44185,44187-44206,44208-44213,44231-44232,44235,44248,44284,44287-44288
</span><span class="cx" style="display: block; padding: 0 10px"> /branches/5.5:49373-49379,49381
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/trunk:44744,44747-44749,44760,44762,44768-44769,44788,44794,44797,44799,44801,44805-44806,44814,44816,44829,44833,44842,44858,44925-44926,44993,45067,45317,45321,45745,45762,45765,45783-45784,45800,45819,45826,45857,45885,45936,45971,45990,45997,46019,46320,46403-46404,46408-46409,46474-46478,46483,46485,46682,46893-46896,46996,46999,47225,47313,47318,47341,47404,47633-47638,47867-47869,47872-47873,47887,47889,47912,47948-47951,47984,48121,48241,48338,48341,48705,49162,49168-49169,49175,49204,49227-49228,49244,49306,49335,49358,49360,49362,49369,49371,49380,49382-49388,49548,49636,49779,49781-49784,49786,49836,49876,49933,49937-49940,49983,49989,50017,50126,50176,50185,50192,50267-50268,50285,50298,50379,50387,50413,50416,50432,50435-50436,50444,50446,50473-50474,50476,50479,50485-50487,50545,50579,50590,50598,50704,50796,50799,50930,50940-50941,50984-50985,51341,51355,51426,51498,51511
,51535,51921,51924-51925,51937,52002,52130,52183,52233,52412,52454-52457,52844,53112,53581-53582,53592,53958-53960,54322,54521-54530,54541,54968,55350
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/trunk:44744,44747-44749,44760,44762,44768-44769,44788,44794,44797,44799,44801,44805-44806,44814,44816,44829,44833,44842,44858,44925-44926,44993,45067,45317,45321,45745,45762,45765,45783-45784,45800,45819,45826,45857,45885,45936,45971,45990,45997,46019,46320,46403-46404,46408-46409,46474-46478,46483,46485,46682,46893-46896,46996,46999,47225,47313,47318,47341,47404,47633-47638,47867-47869,47872-47873,47887,47889,47912,47948-47951,47984,48121,48241,48338,48341,48705,49162,49168-49169,49175,49204,49227-49228,49244,49306,49335,49358,49360,49362,49369,49371,49380,49382-49388,49548,49636,49779,49781-49784,49786,49836,49876,49933,49937-49940,49983,49989,50017,50126,50176,50185,50192,50267-50268,50285,50298,50379,50387,50413,50416,50432,50435-50436,50444,50446,50473-50474,50476,50479,50485-50487,50545,50579,50590,50598,50704,50796,50799,50930,50940-50941,50984-50985,51341,51355,51426,51498,51511
,51535,51921,51924-51925,51937,52002,52130,52183,52233,52412,52454-52457,52844,53112,53581-53582,53592,53736-53737,53940,53947,53958-53960,54039,54096,54108,54293,54313,54322,54342-54343,54373,54511,54521-54530,54541,54650-54651,54674,54750,54852,54968,55152,55350,55487
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="branches51env"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: branches/5.1/.env</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.1/.env 2023-03-10 16:10:01 UTC (rev 55523)
+++ branches/5.1/.env 2023-03-10 16:25:26 UTC (rev 55524)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -57,8 +57,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> #
</span><span class="cx" style="display: block; padding: 0 10px"> # Defaults to 5.7 with the assumption that LOCAL_DB_TYPE is set to `mysql` above.
</span><span class="cx" style="display: block; padding: 0 10px"> #
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-# When using `mysql`, see https://hub.docker.com/_/mysql/ for valid versions.
-# When using `mariadb`, see https://hub.docker.com/_/mariadb for valid versions.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+# When using `mysql`, see https://hub.docker.com/r/amd64/mysql for valid versions.
+# When using `mariadb`, see https://hub.docker.com/r/amd64/mariadb for valid versions.
</ins><span class="cx" style="display: block; padding: 0 10px"> ##
</span><span class="cx" style="display: block; padding: 0 10px"> LOCAL_DB_VERSION=5.7
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="branches51githubworkflowscodingstandardsyml"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: branches/5.1/.github/workflows/coding-standards.yml</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.1/.github/workflows/coding-standards.yml 2023-03-10 16:10:01 UTC (rev 55523)
+++ branches/5.1/.github/workflows/coding-standards.yml 2023-03-10 16:25:26 UTC (rev 55524)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -9,8 +9,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> - '3.[89]'
</span><span class="cx" style="display: block; padding: 0 10px"> - '[4-9].[0-9]'
</span><span class="cx" style="display: block; padding: 0 10px"> tags:
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- - '3.[89]*'
- - '[4-9].[0-9]*'
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ - '[0-9]+.[0-9]'
+ - '[0-9]+.[0-9].[0-9]+'
+ - '!3.7.[0-9]+'
</ins><span class="cx" style="display: block; padding: 0 10px"> pull_request:
</span><span class="cx" style="display: block; padding: 0 10px"> branches:
</span><span class="cx" style="display: block; padding: 0 10px"> - trunk
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -20,7 +21,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> # Any change to a PHP or JavaScript file should run checks.
</span><span class="cx" style="display: block; padding: 0 10px"> - '**.js'
</span><span class="cx" style="display: block; padding: 0 10px"> - '**.php'
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # These files configure NPM. Changes could affect the outcome.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # These files configure npm. Changes could affect the outcome.
</ins><span class="cx" style="display: block; padding: 0 10px"> - 'package*.json'
</span><span class="cx" style="display: block; padding: 0 10px"> # These files configure Composer. Changes could affect the outcome.
</span><span class="cx" style="display: block; padding: 0 10px"> - 'composer.*'
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,10 +61,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> steps:
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Checkout repository
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Set up PHP
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><span class="cx" style="display: block; padding: 0 10px"> php-version: '7.2'
</span><span class="cx" style="display: block; padding: 0 10px"> coverage: none
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -75,9 +76,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> composer --version
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Install Composer dependencies
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- composer-options: "--no-progress --no-ansi --no-interaction"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ composer-options: "--no-progress --no-ansi"
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Make Composer packages available globally
</span><span class="cx" style="display: block; padding: 0 10px"> run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -97,7 +98,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> # - Logs debug information about the GitHub Action runner.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Installs NodeJS.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Logs updated debug information.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # _ Installs NPM dependencies.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # _ Installs npm dependencies.
</ins><span class="cx" style="display: block; padding: 0 10px"> # - Run the WordPress JSHint checks.
</span><span class="cx" style="display: block; padding: 0 10px"> jshint:
</span><span class="cx" style="display: block; padding: 0 10px"> name: JavaScript coding standards
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -109,7 +110,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> steps:
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Checkout repository
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Log debug information
</span><span class="cx" style="display: block; padding: 0 10px"> run: |
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -118,8 +119,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> git --version
</span><span class="cx" style="display: block; padding: 0 10px"> svn --version
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- - name: Install NodeJS
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ - name: Set up Node.js
+ uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><span class="cx" style="display: block; padding: 0 10px"> node-version-file: '.nvmrc'
</span><span class="cx" style="display: block; padding: 0 10px"> cache: npm
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -147,3 +148,34 @@
</span><span class="cx" style="display: block; padding: 0 10px"> SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
</span><span class="cx" style="display: block; padding: 0 10px"> SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
</span><span class="cx" style="display: block; padding: 0 10px"> SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ failed-workflow:
+ name: Failed workflow tasks
+ runs-on: ubuntu-latest
+ needs: [ phpcs, jshint, slack-notifications ]
+ if: |
+ always() &&
+ github.repository == 'WordPress/wordpress-develop' &&
+ github.event_name != 'pull_request' &&
+ github.run_attempt < 2 &&
+ (
+ needs.phpcs.result == 'cancelled' || needs.phpcs.result == 'failure' ||
+ 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 }}'
+ }
+ });
</ins></span></pre></div>
<a id="branches51githubworkflowsjavascripttestsyml"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: branches/5.1/.github/workflows/javascript-tests.yml</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.1/.github/workflows/javascript-tests.yml 2023-03-10 16:10:01 UTC (rev 55523)
+++ branches/5.1/.github/workflows/javascript-tests.yml 2023-03-10 16:25:26 UTC (rev 55524)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -8,8 +8,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> - '3.[89]'
</span><span class="cx" style="display: block; padding: 0 10px"> - '[4-9].[0-9]'
</span><span class="cx" style="display: block; padding: 0 10px"> tags:
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- - '3.[89]*'
- - '[4-9].[0-9]*'
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ - '[0-9]+.[0-9]'
+ - '[0-9]+.[0-9].[0-9]+'
+ - '!3.7.[0-9]+'
</ins><span class="cx" style="display: block; padding: 0 10px"> pull_request:
</span><span class="cx" style="display: block; padding: 0 10px"> branches:
</span><span class="cx" style="display: block; padding: 0 10px"> - trunk
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,7 +19,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> paths:
</span><span class="cx" style="display: block; padding: 0 10px"> # Any change to a JavaScript file should run tests.
</span><span class="cx" style="display: block; padding: 0 10px"> - '**.js'
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # These files configure NPM. Changes could affect the outcome.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # These files configure npm. Changes could affect the outcome.
</ins><span class="cx" style="display: block; padding: 0 10px"> - 'package*.json'
</span><span class="cx" style="display: block; padding: 0 10px"> # This file configures ESLint. Changes could affect the outcome.
</span><span class="cx" style="display: block; padding: 0 10px"> - '.eslintignore'
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -45,7 +46,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> # - Logs debug information about the GitHub Action runner.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Installs NodeJS.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Logs updated debug information.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # _ Installs NPM dependencies.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # _ Installs npm dependencies.
</ins><span class="cx" style="display: block; padding: 0 10px"> # - Run the WordPress QUnit tests.
</span><span class="cx" style="display: block; padding: 0 10px"> test-js:
</span><span class="cx" style="display: block; padding: 0 10px"> name: QUnit Tests
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -55,7 +56,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> steps:
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Checkout repository
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Log debug information
</span><span class="cx" style="display: block; padding: 0 10px"> run: |
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -64,8 +65,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> git --version
</span><span class="cx" style="display: block; padding: 0 10px"> svn --version
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- - name: Install NodeJS
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ - name: Set up Node.js
+ uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><span class="cx" style="display: block; padding: 0 10px"> node-version-file: '.nvmrc'
</span><span class="cx" style="display: block; padding: 0 10px"> cache: npm
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -93,3 +94,33 @@
</span><span class="cx" style="display: block; padding: 0 10px"> SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
</span><span class="cx" style="display: block; padding: 0 10px"> SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
</span><span class="cx" style="display: block; padding: 0 10px"> SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ failed-workflow:
+ name: Failed workflow tasks
+ runs-on: ubuntu-latest
+ needs: [ test-js, slack-notifications ]
+ if: |
+ always() &&
+ github.repository == 'WordPress/wordpress-develop' &&
+ github.event_name != 'pull_request' &&
+ github.run_attempt < 2 &&
+ (
+ needs.test-js.result == 'cancelled' || needs.test-js.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 }}'
+ }
+ });
</ins></span></pre></div>
<a id="branches51githubworkflowsphpunittestsyml"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: branches/5.1/.github/workflows/phpunit-tests.yml</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.1/.github/workflows/phpunit-tests.yml 2023-03-10 16:10:01 UTC (rev 55523)
+++ branches/5.1/.github/workflows/phpunit-tests.yml 2023-03-10 16:25:26 UTC (rev 55524)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7,8 +7,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> - '3.[7-9]'
</span><span class="cx" style="display: block; padding: 0 10px"> - '[4-9].[0-9]'
</span><span class="cx" style="display: block; padding: 0 10px"> tags:
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- - '3.[7-9]*'
- - '[4-9].[0-9]*'
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ - '[0-9]+.[0-9]'
+ - '[0-9]+.[0-9].[0-9]+'
</ins><span class="cx" style="display: block; padding: 0 10px"> pull_request:
</span><span class="cx" style="display: block; padding: 0 10px"> branches:
</span><span class="cx" style="display: block; padding: 0 10px"> - trunk
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -30,7 +30,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> LOCAL_DIR: build
</span><span class="cx" style="display: block; padding: 0 10px"> PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}
</span><span class="cx" style="display: block; padding: 0 10px"> COMPOSER_INSTALL: ${{ false }}
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # Controls which NPM script to use for running PHPUnit tests. Options ar `php` and `php-composer`.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # Controls which npm script to use for running PHPUnit tests. Options ar `php` and `php-composer`.
</ins><span class="cx" style="display: block; padding: 0 10px"> PHPUNIT_SCRIPT: php
</span><span class="cx" style="display: block; padding: 0 10px"> LOCAL_PHP_MEMCACHED: ${{ false }}
</span><span class="cx" style="display: block; padding: 0 10px"> SLOW_TESTS: 'external-http,media,restapi'
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -43,7 +43,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> # - Checks out the repository.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Logs debug information about the GitHub Action runner.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Installs NodeJS.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # _ Installs NPM dependencies.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # _ Installs npm dependencies.
</ins><span class="cx" style="display: block; padding: 0 10px"> # - Builds WordPress to run from the `build` directory.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Creates a ZIP file of compiled WordPress.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Uploads ZIP file as an artifact.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -54,7 +54,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> steps:
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Checkout repository
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Log debug information
</span><span class="cx" style="display: block; padding: 0 10px"> run: |
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -69,8 +69,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> php -i
</span><span class="cx" style="display: block; padding: 0 10px"> locale -a
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- - name: Install NodeJS
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ - name: Set up Node.js
+ uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><span class="cx" style="display: block; padding: 0 10px"> node-version-file: '.nvmrc'
</span><span class="cx" style="display: block; padding: 0 10px"> cache: npm
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -82,13 +82,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> run: npm run build
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Create ZIP artifact
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: thedoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657 # v0.6.2
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: thedoctor0/zip-release@a24011d8d445e4da5935a7e73c1f98e22a439464 # v0.7.1
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><span class="cx" style="display: block; padding: 0 10px"> filename: built-wp-${{ github.sha }}.zip
</span><span class="cx" style="display: block; padding: 0 10px"> exclusions: '*.git* /*node_modules/* packagehash.txt'
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Upload build artifact
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><span class="cx" style="display: block; padding: 0 10px"> name: built-wp-${{ github.sha }}
</span><span class="cx" style="display: block; padding: 0 10px"> path: built-wp-${{ github.sha }}.zip
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -102,7 +102,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> # - Downloads the built WordPress artifact from the previous job.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Unzips the artifact.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Installs NodeJS.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # _ Installs NPM dependencies.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # _ Installs npm dependencies.
</ins><span class="cx" style="display: block; padding: 0 10px"> # - Configures caching for Composer.
</span><span class="cx" style="display: block; padding: 0 10px"> # _ Installs Composer dependencies (if desired).
</span><span class="cx" style="display: block; padding: 0 10px"> # - Logs Docker debug information (about the Docker installation within the runner).
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -220,7 +220,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Download the built WordPress artifact
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v3.0.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><span class="cx" style="display: block; padding: 0 10px"> name: built-wp-${{ github.sha }}
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -227,8 +227,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Unzip built artifact
</span><span class="cx" style="display: block; padding: 0 10px"> run: unzip built-wp-${{ github.sha }}.zip
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- - name: Install NodeJS
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ - name: Set up Node.js
+ uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><span class="cx" style="display: block; padding: 0 10px"> node-version-file: '.nvmrc'
</span><span class="cx" style="display: block; padding: 0 10px"> cache: npm
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -238,7 +238,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Cache Composer dependencies
</span><span class="cx" style="display: block; padding: 0 10px"> if: ${{ env.COMPOSER_INSTALL == true }}
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6
</ins><span class="cx" style="display: block; padding: 0 10px"> env:
</span><span class="cx" style="display: block; padding: 0 10px"> cache-name: cache-composer-dependencies
</span><span class="cx" style="display: block; padding: 0 10px"> with:
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -319,7 +319,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Checkout the WordPress Test Reporter
</span><span class="cx" style="display: block; padding: 0 10px"> if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }}
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><span class="cx" style="display: block; padding: 0 10px"> repository: 'WordPress/phpunit-test-runner'
</span><span class="cx" style="display: block; padding: 0 10px"> path: 'test-runner'
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -350,3 +350,33 @@
</span><span class="cx" style="display: block; padding: 0 10px"> SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
</span><span class="cx" style="display: block; padding: 0 10px"> SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
</span><span class="cx" style="display: block; padding: 0 10px"> SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ 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 }}'
+ }
+ });
</ins></span></pre></div>
<a id="branches51githubworkflowstestnpmyml"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: branches/5.1/.github/workflows/test-npm.yml</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.1/.github/workflows/test-npm.yml 2023-03-10 16:10:01 UTC (rev 55523)
+++ branches/5.1/.github/workflows/test-npm.yml 2023-03-10 16:25:26 UTC (rev 55524)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,4 +1,4 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-name: Test NPM
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+name: Test npm
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> on:
</span><span class="cx" style="display: block; padding: 0 10px"> push:
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,6 +6,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> - trunk
</span><span class="cx" style="display: block; padding: 0 10px"> - '3.[7-9]'
</span><span class="cx" style="display: block; padding: 0 10px"> - '[4-9].[0-9]'
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ tags:
+ - '[0-9]+.[0-9]'
+ - '[0-9]+.[0-9].[0-9]+'
</ins><span class="cx" style="display: block; padding: 0 10px"> pull_request:
</span><span class="cx" style="display: block; padding: 0 10px"> branches:
</span><span class="cx" style="display: block; padding: 0 10px"> - trunk
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,11 +15,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> - '3.[7-9]'
</span><span class="cx" style="display: block; padding: 0 10px"> - '[4-9].[0-9]'
</span><span class="cx" style="display: block; padding: 0 10px"> paths:
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # These files configure NPM. Changes could affect the outcome.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # These files configure npm. Changes could affect the outcome.
</ins><span class="cx" style="display: block; padding: 0 10px"> - 'package*.json'
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # JavaScript files are built using NPM.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # JavaScript files are built using npm.
</ins><span class="cx" style="display: block; padding: 0 10px"> - '**.js'
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # CSS and SCSS files are built using NPM.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # CSS and SCSS files are built using npm.
</ins><span class="cx" style="display: block; padding: 0 10px"> - '**.scss'
</span><span class="cx" style="display: block; padding: 0 10px"> - '**.css'
</span><span class="cx" style="display: block; padding: 0 10px"> # Changes to workflow files should always verify all workflows are successful.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -34,19 +37,19 @@
</span><span class="cx" style="display: block; padding: 0 10px"> PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> jobs:
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # Verifies that installing NPM dependencies and building WordPress works as expected.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # Verifies that installing npm dependencies and building WordPress works as expected.
</ins><span class="cx" style="display: block; padding: 0 10px"> #
</span><span class="cx" style="display: block; padding: 0 10px"> # Performs the following steps:
</span><span class="cx" style="display: block; padding: 0 10px"> # - Checks out the repository.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Logs debug information about the GitHub Action runner.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Installs NodeJS.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # _ Installs NPM dependencies.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # _ Installs npm dependencies.
</ins><span class="cx" style="display: block; padding: 0 10px"> # - Builds WordPress to run from the `build` directory.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Cleans up after building WordPress to the `build` directory.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Builds WordPress to run from the `src` directory.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Cleans up after building WordPress to the `src` directory.
</span><span class="cx" style="display: block; padding: 0 10px"> test-npm:
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- name: Test NPM on ${{ matrix.os }}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ name: Test npm on ${{ matrix.os }}
</ins><span class="cx" style="display: block; padding: 0 10px"> runs-on: ${{ matrix.os }}
</span><span class="cx" style="display: block; padding: 0 10px"> timeout-minutes: 20
</span><span class="cx" style="display: block; padding: 0 10px"> if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -57,7 +60,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> steps:
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Checkout repository
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Log debug information
</span><span class="cx" style="display: block; padding: 0 10px"> run: |
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -67,8 +70,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> git --version
</span><span class="cx" style="display: block; padding: 0 10px"> svn --version
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- - name: Install NodeJS
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ - name: Set up Node.js
+ uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><span class="cx" style="display: block; padding: 0 10px"> node-version-file: '.nvmrc'
</span><span class="cx" style="display: block; padding: 0 10px"> cache: npm
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -88,28 +91,32 @@
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Clean after building in /src
</span><span class="cx" style="display: block; padding: 0 10px"> run: npm run grunt clean -- --dev
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # Verifies that installing NPM dependencies and building WordPress works as expected on MacOS.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # Verifies that installing npm dependencies and building WordPress works as expected on MacOS.
</ins><span class="cx" style="display: block; padding: 0 10px"> #
</span><span class="cx" style="display: block; padding: 0 10px"> # This is separate from the job above in order to use stricter conditions about when to run.
</span><span class="cx" style="display: block; padding: 0 10px"> # This avoids unintentionally consuming excessive minutes, as MacOS jobs consume minutes at a 10x rate.
</span><span class="cx" style="display: block; padding: 0 10px"> #
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # The `matrix` and `runner` contexts are not available for use within `if` expressions. So there is
+ # currently no way to determine the OS being used on a given job.
+ # See https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability.
+ #
</ins><span class="cx" style="display: block; padding: 0 10px"> # Performs the following steps:
</span><span class="cx" style="display: block; padding: 0 10px"> # - Checks out the repository.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Logs debug information about the GitHub Action runner.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Installs NodeJS.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- # _ Installs NPM dependencies.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ # _ Installs npm dependencies.
</ins><span class="cx" style="display: block; padding: 0 10px"> # - Builds WordPress to run from the `build` directory.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Cleans up after building WordPress to the `build` directory.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Builds WordPress to run from the `src` directory.
</span><span class="cx" style="display: block; padding: 0 10px"> # - Cleans up after building WordPress to the `src` directory.
</span><span class="cx" style="display: block; padding: 0 10px"> test-npm-macos:
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- name: Test NPM on MacOS
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ name: Test npm on MacOS
</ins><span class="cx" style="display: block; padding: 0 10px"> runs-on: macos-latest
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- timeout-minutes: 20
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ timeout-minutes: 30
</ins><span class="cx" style="display: block; padding: 0 10px"> if: ${{ github.repository == 'WordPress/wordpress-develop' }}
</span><span class="cx" style="display: block; padding: 0 10px"> steps:
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Checkout repository
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> - name: Log debug information
</span><span class="cx" style="display: block; padding: 0 10px"> run: |
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -119,8 +126,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> git --version
</span><span class="cx" style="display: block; padding: 0 10px"> svn --version
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- - name: Install NodeJS
- uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ - name: Set up Node.js
+ uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><span class="cx" style="display: block; padding: 0 10px"> node-version-file: '.nvmrc'
</span><span class="cx" style="display: block; padding: 0 10px"> cache: npm
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -152,3 +159,34 @@
</span><span class="cx" style="display: block; padding: 0 10px"> SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
</span><span class="cx" style="display: block; padding: 0 10px"> SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
</span><span class="cx" style="display: block; padding: 0 10px"> SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ failed-workflow:
+ name: Failed workflow tasks
+ runs-on: ubuntu-latest
+ needs: [ test-npm, test-npm-macos, slack-notifications ]
+ if: |
+ always() &&
+ github.repository == 'WordPress/wordpress-develop' &&
+ github.event_name != 'pull_request' &&
+ github.run_attempt < 2 &&
+ (
+ needs.test-npm.result == 'cancelled' || needs.test-npm.result == 'failure' ||
+ needs.test-npm-macos.result == 'cancelled' || needs.test-npm-macos.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 }}'
+ }
+ });
</ins></span></pre></div>
<a id="branches51githubworkflowstestoldbranchesyml"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: branches/5.1/.github/workflows/test-old-branches.yml</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.1/.github/workflows/test-old-branches.yml 2023-03-10 16:10:01 UTC (rev 55523)
+++ branches/5.1/.github/workflows/test-old-branches.yml 2023-03-10 16:25:26 UTC (rev 55524)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,58 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-name: Test old branches
-
-on:
- # Once weekly On Mondays at 00:00 UTC.
- schedule:
- - cron: '0 0 1,15 * *'
-
-jobs:
- dispatch-workflows-for-old-branches:
- name: ${{ matrix.workflow }} for ${{ matrix.branch }}
- runs-on: ubuntu-latest
- strategy:
- fail-fast: false
- matrix:
- workflow: [
- 'coding-standards.yml',
- 'javascript-tests.yml',
- 'phpunit-tests.yml',
- 'test-npm.yml'
- ]
- branch: [
- '5.7', '5.6', '5.5', '5.4', '5.3', '5.2', '5.1', '5.0',
- '4.9', '4.8', '4.7', '4.6', '4.5', '4.4', '4.3', '4.2', '4.1', '4.0',
- '3.9', '3.8', '3.7'
- ]
- include:
- # PHP Compatibility testing was introduced in 5.5.
- - branch: '5.7'
- workflow: 'php-compatibility.yml'
- - branch: '5.6'
- workflow: 'php-compatibility.yml'
- - branch: '5.5'
- workflow: 'php-compatibility.yml'
-
- # End to End testing was introduced in 5.3 but later removed as there were no meaningful assertions.
- # Only the officially supported major branch runs E2E tests so that more assertions can be added, and the
- # workflow does not continue to run needlessly on old branches.
- - branch: '5.7'
- workflow: 'end-to-end-tests.yml'
- exclude:
- # Coding standards and JavaScript testing did not take place in 3.7.
- - branch: '3.7'
- workflow: 'coding-standards.yml'
- - branch: '3.7'
- workflow: 'javascript-tests.yml'
-
- steps:
- - name: Dispatch workflow run
- uses: actions/github-script@47f7cf65b5ced0830a325f705cad64f2f58dddf7 # v3.1.0
- with:
- github-token: ${{ secrets.GHA_OLD_BRANCH_DISPATCH }}
- script: |
- github.actions.createWorkflowDispatch({
- owner: context.repo.owner,
- repo: context.repo.repo,
- workflow_id: '${{ matrix.workflow }}',
- ref: '${{ matrix.branch }}'
- });
</del></span></pre></div>
<a id="branches51githubworkflowswelcomenewcontributorsyml"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: branches/5.1/.github/workflows/welcome-new-contributors.yml</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.1/.github/workflows/welcome-new-contributors.yml 2023-03-10 16:10:01 UTC (rev 55523)
+++ branches/5.1/.github/workflows/welcome-new-contributors.yml 2023-03-10 16:25:26 UTC (rev 55524)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,9 +12,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if: ${{ github.repository == 'WordPress/wordpress-develop' }}
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> steps:
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- - uses: bubkoo/welcome-action@8dbbac2540d155744c90e4e37da6b05ffc9c5e2c # v1.0.3
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ - uses: wow-actions/welcome@72817eb31cda1de60f51893d80e2e82ce57f7e76 # v1.3.0
</ins><span class="cx" style="display: block; padding: 0 10px"> with:
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
</del><span class="cx" style="display: block; padding: 0 10px"> FIRST_PR_COMMENT: >
</span><span class="cx" style="display: block; padding: 0 10px"> Hi @{{ author }}! 👋
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="branches51dockercomposeyml"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: branches/5.1/docker-compose.yml</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.1/docker-compose.yml 2023-03-10 16:10:01 UTC (rev 55523)
+++ branches/5.1/docker-compose.yml 2023-03-10 16:25:26 UTC (rev 55524)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -53,7 +53,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> # The MySQL container.
</span><span class="cx" style="display: block; padding: 0 10px"> ##
</span><span class="cx" style="display: block; padding: 0 10px"> mysql:
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-5.7}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ image: amd64/${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-5.7}
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> networks:
</span><span class="cx" style="display: block; padding: 0 10px"> - wpdevnet
</span></span></pre>
</div>
</div>
</body>
</html>