woocommerce/.github/actions/report-flaky-tests/dist/index.js

2 lines
958 KiB
JavaScript
Raw Normal View History

/*! For license information please see index.js.LICENSE.txt */
(()=>{var e={5265:function(e,A,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t]}})}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t]}),s=this&&this.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A})}:function(e,A){e.default=A}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&r(A,e,t);return s(A,e),A};Object.defineProperty(A,"__esModule",{value:!0}),A.issue=A.issueCommand=void 0;const o=a(t(2037)),i=t(4570);function n(e,A,t){const r=new p(e,A,t);process.stdout.write(r.toString()+o.EOL)}A.issueCommand=n,A.issue=function(e,A=""){n(e,{},A)};class p{constructor(e,A,t){e||(e="missing.command"),this.command=e,this.properties=A,this.message=t}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const s=this.properties[r];s&&(t?t=!1:e+=",",e+=`${r}=${A=s,i.toCommandValue(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var A;return e+=`::${function(e){return i.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message)}`,e}}},2225:function(e,A,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t]}})}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t]}),s=this&&this.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A})}:function(e,A){e.default=A}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&r(A,e,t);return s(A,e),A},o=this&&this.__awaiter||function(e,A,t,r){return new(t||(t=Promise))((function(s,a){function o(e){try{n(r.next(e))}catch(e){a(e)}}function i(e){try{n(r.throw(e))}catch(e){a(e)}}function n(e){var A;e.done?s(e.value):(A=e.value,A instanceof t?A:new t((function(e){e(A)}))).then(o,i)}n((r=r.apply(e,A||[])).next())}))};Object.defineProperty(A,"__esModule",{value:!0}),A.getIDToken=A.getState=A.saveState=A.group=A.endGroup=A.startGroup=A.info=A.notice=A.warning=A.error=A.debug=A.isDebug=A.setFailed=A.setCommandEcho=A.setOutput=A.getBooleanInput=A.getMultilineInput=A.getInput=A.addPath=A.setSecret=A.exportVariable=A.ExitCode=void 0;const i=t(5265),n=t(3108),p=t(4570),d=a(t(2037)),l=a(t(1017)),c=t(1526);var g;function u(e,A){const t=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(A&&A.required&&!t)throw new Error(`Input required and not supplied: ${e}`);return A&&!1===A.trimWhitespace?t:t.trim()}function E(e,A={}){i.issueCommand("error",p.toCommandProperties(A),e instanceof Error?e.toString():e)}function m(e){i.issue("group",e)}function h(){i.issue("endgroup")}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"}(g=A.ExitCode||(A.ExitCode={})),A.exportVariable=function(e,A){const t=p.toCommandValue(A);if(process.env[e]=t,process.env.GITHUB_ENV)return n.issueFileCommand("ENV",n.prepareKeyValueMessage(e,A));i.issueCommand("set-env",{name:e},t)},A.setSecret=function(e){i.issueCommand("add-mask",{},e)},A.addPath=function(e){process.env.GITHUB_PATH?n.issueFileCommand("PATH",e):i.issueCommand("add-path",{},e),process.env.PATH=`${e}${l.delimiter}${process.env.PATH}`},A.getInput=u,A.getMultilineInput=function(e,A){const t=u(e,A).split("\n").filter((e=>""!==e));return A&&!1===A.trimWhitespace?t:t.map((e=>e.trim()))},A.getBooleanInput=function(e,A){const t=u(e,A);if(["true","True","TRUE"].includes(t))return!0;if(["false","False","FALSE"].includes(t))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},A.setOutput=function(e,A){if(process.env