Build/Test Tools: Backport GitHub Action and build improvements to the 5.3 branch.
This backports several build and test tool improvements to the 5.3 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].
- The ability to run PHPUnit tests from `src` instead of `build` [50441-50443].
- 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 [50267,50299,50379,50387,50413,50416,50432,50435-50436,50441-50444,50446,50473-50474,50476,50479,50485-50487,50545,50579,50590,50598] to the 5.3 branch.
See #50401, #51734, #51801, #51802, #52548, #52608, #52612, #52623, #52624, #52625, #52645, #52653, #52658, #52660, #52667.
Built from https://develop.svn.wordpress.org/branches/5.3@50605
git-svn-id: http://core.svn.wordpress.org/branches/5.3@50218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 20:23:55 +01:00
|
|
|
!function(Q,V){var q=Q(document),B=Q(V),H=Q(document.body);V.adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}},V.columns={init:function(){var n=this;Q(".hide-column-tog","#adv-settings").click(function(){var e=Q(this),t=e.val();e.prop("checked")?n.checked(t):n.unchecked(t),columns.saveManageColumnsState()})},saveManageColumnsState:function(){var e=this.hidden();Q.post(ajaxurl,{action:"hidden-columns",hidden:e,screenoptionnonce:Q("#screenoptionnonce").val(),page:pagenow})},checked:function(e){Q(".column-"+e).removeClass("hidden"),this.colSpanChange(1)},unchecked:function(e){Q(".column-"+e).addClass("hidden"),this.colSpanChange(-1)},hidden:function(){return Q(".manage-column[id]").filter(".hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return Q(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(e,e.length-5)}).get().join(",")}},colSpanChange:function(e){var t=Q("table").find(".colspanchange");t.length&&(e=parseInt(t.attr("colspan"),10)+e,t.attr("colspan",e.toString()))}},q.ready(function(){columns.init()}),V.validateForm=function(e){return!Q(e).find(".form-required").filter(function(){return""===Q(":input:visible",this).val()}).addClass("form-invalid").find(":input:visible").change(function(){Q(this).closest(".form-invalid").removeClass("form-invalid")}).length},V.showNotice={warn:function(){var e=commonL10n.warnDelete||"";return!!confirm(e)},note:function(e){alert(e)}},V.screenMeta={element:null,toggles:null,page:null,init:function(){this.element=Q("#screen-meta"),this.toggles=Q("#screen-meta-links").find(".show-settings"),this.page=Q("#wpcontent"),this.toggles.click(this.toggleEvent)},toggleEvent:function(){var e=Q("#"+Q(this).attr("aria-controls"));e.length&&(e.is(":visible")?screenMeta.close(e,Q(this)):screenMeta.open(e,Q(this)))},open:function(e,t){Q("#screen-meta-links").find(".screen-meta-toggle").not(t.parent()).css("visibility","hidden"),e.parent().show(),e.slideDown("fast",function(){e.focus(),t.addClass("screen-meta-active").attr("aria-expanded",!0)}),q.trigger("screen:options:open")},close:function(e,t){e.slideUp("fast",function(){t.removeClass("screen-meta-active").attr("aria-expanded",!1),Q(".screen-meta-toggle").css("visibility",""),e.parent().hide()}),q.trigger("screen:options:close")}},Q(".contextual-help-tabs").delegate("a","click",function(e){var t=Q(this);if(e.preventDefault(),t.is(".active a"))return!1;Q(".contextual-help-tabs .active").removeClass("active"),t.parent("li").addClass("active"),t=Q(t.attr("href")),Q(".help-tab-content").not(t).removeClass("active").hide(),t.addClass("active").show()});var e,s=!1,a=Q("#permalink_structure"),t=Q(".permalink-structure input:radio"),r=Q("#custom_selection"),n=Q(".form-table.permalink-structure .available-structure-tags button");function l(e){-1!==a.val().indexOf(e.text().trim())?(e.attr("data-label",e.attr("aria-label")),e.attr("aria-label",e.attr("data-used")),e.attr("aria-pressed",!0),e.addClass("active")):e.attr("data-label")&&(e.attr("aria-label",e.attr("data-label")),e.attr("aria-pressed",!1),e.removeClass("active"))}function i(){q.trigger("wp-window-resized")}t.on("change",function(){"custom"!==this.value&&(a.val(this.value),n.each(function(){l(Q(this))}))}),a.on("click input",function(){r.prop("checked",!0)}),a.on("focus",function(e){s=!0,Q(this).off(e)}),n.each(function(){l(Q(this))}),a.on("change",function(){n.each(function(){l(Q(this))})}),n.on("click",function(){var e=a.val(),t=a[0].selectionStart,n=a[0].selectionEnd,i=Q(this).text().trim(),o=Q(this).attr("data-added");if(-1!==e.indexOf(i))return e=e.replace(i+"/",""),a.val("/"===e?"":e),Q("#custom_selection_updated").text(o),void l(Q(this));s||0!==t||0!==n||(t=n=e.length),r.prop("checked",!0),"/"!==e.substr(0,t).substr(-1)&&(i="/"+i),"/"!==e.substr(n,1)&&(i+="/"),a.val(e.substr(0,t)+i+e.substr(n)),Q("#custom_selection_updated").text(o),l(Q(this)),s&&a[0].setSelectionRange&&(i=(e.substr(0,t)+i).length,a[0].setSelectionRange(i,i)
|