From 2453e4cdfa8b0b588dbf8e185804e02d0c8ee65f Mon Sep 17 00:00:00 2001 From: Damien Retzinger Date: Tue, 13 Dec 2022 10:25:14 -0500 Subject: [PATCH] fix(supported-versions): GA Ubuntu-22.04 release Github released Ubuntu 22.04 as a runner for many actions: https://github.com/actions/runner-images/issues/5490. As a result, we started experiencing intermittent failures as the underlying runner's support varied for older versions of Magento. --- supported-version/dist/index.js | 2 +- supported-version/src/versions/composite.json | 8 +++---- .../src/versions/individual.json | 22 +++++++++---------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/supported-version/dist/index.js b/supported-version/dist/index.js index b317d4e3..c3a9f2ec 100644 --- a/supported-version/dist/index.js +++ b/supported-version/dist/index.js @@ -5,4 +5,4 @@ var Wt=Object.create;var K=Object.defineProperty;var zt=Object.getOwnPropertyDes Error Message: ${s.result.message}`)})).result)===null||r===void 0?void 0:r.value;if(!o)throw new Error("Response json body do not have ID Token field");return o})}static getIDToken(t){return xt(this,void 0,void 0,function*(){try{let r=M.getIDTokenUrl();if(t){let i=encodeURIComponent(t);r=`${r}&audience=${i}`}Ot.debug(`ID token url is ${r}`);let n=yield M.getCall(r);return Ot.setSecret(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};$.OidcClient=M});var Ce=p(_=>{"use strict";var Ue=_&&_.__awaiter||function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function c(u){try{a(n.next(u))}catch(f){s(f)}}function l(u){try{a(n.throw(u))}catch(f){s(f)}}function a(u){u.done?o(u.value):i(u.value).then(c,l)}a((n=n.apply(e,t||[])).next())})};Object.defineProperty(_,"__esModule",{value:!0});_.summary=_.markdownSummary=_.SUMMARY_DOCS_URL=_.SUMMARY_ENV_VAR=void 0;var Bn=require("os"),De=require("fs"),{access:$n,appendFile:Ln,writeFile:Vn}=De.promises;_.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";_.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Ne=class{constructor(){this._buffer=""}filePath(){return Ue(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[_.SUMMARY_ENV_VAR];if(!t)throw new Error(`Unable to find environment variable for $${_.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield $n(t,De.constants.R_OK|De.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath})}wrap(t,r,n={}){let i=Object.entries(n).map(([o,s])=>` ${o}="${s}"`).join("");return r?`<${t}${i}>${r}`:`<${t}${i}>`}write(t){return Ue(this,void 0,void 0,function*(){let r=!!t?.overwrite,n=yield this.filePath();return yield(r?Vn:Ln)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Ue(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(t,r=!1){return this._buffer+=t,r?this.addEOL():this}addEOL(){return this.addRaw(Bn.EOL)}addCodeBlock(t,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",t),n);return this.addRaw(i).addEOL()}addList(t,r=!1){let n=r?"ol":"ul",i=t.map(s=>this.wrap("li",s)).join(""),o=this.wrap(n,i);return this.addRaw(o).addEOL()}addTable(t){let r=t.map(i=>{let o=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:c,data:l,colspan:a,rowspan:u}=s,f=c?"th":"td",m=Object.assign(Object.assign({},a&&{colspan:a}),u&&{rowspan:u});return this.wrap(f,l,m)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(t,r){let n=this.wrap("details",this.wrap("summary",t)+r);return this.addRaw(n).addEOL()}addImage(t,r,n){let{width:i,height:o}=n||{},s=Object.assign(Object.assign({},i&&{width:i}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:t,alt:r},s));return this.addRaw(c).addEOL()}addHeading(t,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(i,t);return this.addRaw(o).addEOL()}addSeparator(){let t=this.wrap("hr",null);return this.addRaw(t).addEOL()}addBreak(){let t=this.wrap("br",null);return this.addRaw(t).addEOL()}addQuote(t,r){let n=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",t,n);return this.addRaw(i).addEOL()}addLink(t,r){let n=this.wrap("a",t,{href:r});return this.addRaw(n).addEOL()}},Pt=new Ne;_.markdownSummary=Pt;_.summary=Pt});var Et=p(b=>{"use strict";var Fn=b&&b.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Gn=b&&b.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Jn=b&&b.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&Fn(t,e,r);return Gn(t,e),t};Object.defineProperty(b,"__esModule",{value:!0});b.toPlatformPath=b.toWin32Path=b.toPosixPath=void 0;var Kn=Jn(require("path"));function Wn(e){return e.replace(/[\\]/g,"/")}b.toPosixPath=Wn;function zn(e){return e.replace(/[/]/g,"\\")}b.toWin32Path=zn;function Hn(e){return e.replace(/[/\\]/g,Kn.sep)}b.toPlatformPath=Hn});var je=p(d=>{"use strict";var Yn=d&&d.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Qn=d&&d.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),St=d&&d.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&Yn(t,e,r);return Qn(t,e),t},At=d&&d.__awaiter||function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function c(u){try{a(n.next(u))}catch(f){s(f)}}function l(u){try{a(n.throw(u))}catch(f){s(f)}}function a(u){u.done?o(u.value):i(u.value).then(c,l)}a((n=n.apply(e,t||[])).next())})};Object.defineProperty(d,"__esModule",{value:!0});d.getIDToken=d.getState=d.saveState=d.group=d.endGroup=d.startGroup=d.info=d.notice=d.warning=d.error=d.debug=d.isDebug=d.setFailed=d.setCommandEcho=d.setOutput=d.getBooleanInput=d.getMultilineInput=d.getInput=d.addPath=d.setSecret=d.exportVariable=d.ExitCode=void 0;var x=Fe(),U=dt(),L=W(),Tt=St(require("os")),Xn=St(require("path")),Zn=Rt(),Mt;(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(Mt=d.ExitCode||(d.ExitCode={}));function ei(e,t){let r=L.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV||"")return U.issueFileCommand("ENV",U.prepareKeyValueMessage(e,t));x.issueCommand("set-env",{name:e},r)}d.exportVariable=ei;function ti(e){x.issueCommand("add-mask",{},e)}d.setSecret=ti;function ri(e){process.env.GITHUB_PATH||""?U.issueFileCommand("PATH",e):x.issueCommand("add-path",{},e),process.env.PATH=`${e}${Xn.delimiter}${process.env.PATH}`}d.addPath=ri;function ke(e,t){let r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw new Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?r:r.trim()}d.getInput=ke;function ni(e,t){let r=ke(e,t).split(` `).filter(n=>n!=="");return t&&t.trimWhitespace===!1?r:r.map(n=>n.trim())}d.getMultilineInput=ni;function ii(e,t){let r=["true","True","TRUE"],n=["false","False","FALSE"],i=ke(e,t);if(r.includes(i))return!0;if(n.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}d.getBooleanInput=ii;function oi(e,t){if(process.env.GITHUB_OUTPUT||"")return U.issueFileCommand("OUTPUT",U.prepareKeyValueMessage(e,t));process.stdout.write(Tt.EOL),x.issueCommand("set-output",{name:e},L.toCommandValue(t))}d.setOutput=oi;function si(e){x.issue("echo",e?"on":"off")}d.setCommandEcho=si;function ai(e){process.exitCode=Mt.Failure,jt(e)}d.setFailed=ai;function ui(){return process.env.RUNNER_DEBUG==="1"}d.isDebug=ui;function ci(e){x.issueCommand("debug",{},e)}d.debug=ci;function jt(e,t={}){x.issueCommand("error",L.toCommandProperties(t),e instanceof Error?e.toString():e)}d.error=jt;function li(e,t={}){x.issueCommand("warning",L.toCommandProperties(t),e instanceof Error?e.toString():e)}d.warning=li;function di(e,t={}){x.issueCommand("notice",L.toCommandProperties(t),e instanceof Error?e.toString():e)}d.notice=di;function fi(e){process.stdout.write(e+Tt.EOL)}d.info=fi;function Ut(e){x.issue("group",e)}d.startGroup=Ut;function Dt(){x.issue("endgroup")}d.endGroup=Dt;function mi(e,t){return At(this,void 0,void 0,function*(){Ut(e);let r;try{r=yield t()}finally{Dt()}return r})}d.group=mi;function hi(e,t){if(process.env.GITHUB_STATE||"")return U.issueFileCommand("STATE",U.prepareKeyValueMessage(e,t));x.issueCommand("save-state",{name:e},L.toCommandValue(t))}d.saveState=hi;function pi(e){return process.env[`STATE_${e}`]||""}d.getState=pi;function gi(e){return At(this,void 0,void 0,function*(){return yield Zn.OidcClient.getIDToken(e)})}d.getIDToken=gi;var vi=Ce();Object.defineProperty(d,"summary",{enumerable:!0,get:function(){return vi.summary}});var yi=Ce();Object.defineProperty(d,"markdownSummary",{enumerable:!0,get:function(){return yi.markdownSummary}});var Ie=Et();Object.defineProperty(d,"toPosixPath",{enumerable:!0,get:function(){return Ie.toPosixPath}});Object.defineProperty(d,"toWin32Path",{enumerable:!0,get:function(){return Ie.toWin32Path}});Object.defineProperty(d,"toPlatformPath",{enumerable:!0,get:function(){return Ie.toPlatformPath}})});var Ei={};Xt(Ei,{run:()=>Kt});module.exports=er(Ei);var D=Zt(je());var Nt={"currently-supported":!0,latest:!0,custom:!0,nightly:!0,all:!0},_i=e=>e in Nt,Ct=e=>{if(_i(e))return!0;throw new Error(`Invalid kind provided, supported kinds are: ${Object.keys(Nt).join(", ")}`)};var kt={"magento/project-community-edition:>=2.3 <2.4":{magento:"magento/project-community-edition:>=2.3 <2.4",php:7.4,composer:1,mysql:"mysql:5.7.30",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-18.04"},"magento/project-community-edition:>=2.4.0 <2.4.1":{magento:"magento/project-community-edition:>=2.4.0 <2.4.1",php:7.4,composer:1,mysql:"mysql:5.7.30",elasticsearch:"elasticsearch:7.6.2",rabbitmq:"rabbitmq:3.8",redis:"redis:5.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:>=2.4.1 <2.4.2":{magento:"magento/project-community-edition:>=2.4.1 <2.4.2",php:7.4,composer:1,mysql:"mysql:8.0.20",elasticsearch:"elasticsearch:7.7.1",rabbitmq:"rabbitmq:3.8",redis:"redis:5.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:>=2.4.2 <2.4.3":{magento:"magento/project-community-edition:>=2.4.2 <2.4.3",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.9.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:>=2.4.3 <2.4.4":{magento:"magento/project-community-edition:>=2.4.3 <2.4.4",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:>=2.4.4 <2.4.5":{magento:"magento/project-community-edition:>=2.4.4 <2.4.5",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:>=2.4.5 <2.4.6":{magento:"magento/project-community-edition:>=2.4.5 <2.4.6",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.17.5",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition":{magento:"magento/project-community-edition",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.17.5",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:next":{magento:"magento/project-community-edition:next",php:8.1,composer:2.2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.17.5",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"}};var me={"magento/project-community-edition:2.3.7-p3":{magento:"magento/project-community-edition:2.3.7-p3",php:7.4,composer:1,mysql:"mysql:5.7.30",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-18.04"},"magento/project-community-edition:2.3.7-p4":{magento:"magento/project-community-edition:2.3.7-p4",php:7.4,composer:1,mysql:"mysql:5.7.30",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-18.04"},"magento/project-community-edition:2.4.0":{magento:"magento/project-community-edition:2.4.0",php:7.4,composer:1,mysql:"mysql:5.7.30",elasticsearch:"elasticsearch:7.6.2",rabbitmq:"rabbitmq:3.8",redis:"redis:5.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.0-p1":{magento:"magento/project-community-edition:2.4.0-p1",php:7.4,composer:1,mysql:"mysql:5.7.30",elasticsearch:"elasticsearch:7.6.2",rabbitmq:"rabbitmq:3.8",redis:"redis:5.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.1":{magento:"magento/project-community-edition:2.4.1",php:7.4,composer:1,mysql:"mysql:8.0.20",elasticsearch:"elasticsearch:7.7.1",rabbitmq:"rabbitmq:3.8",redis:"redis:5.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.1-p1":{magento:"magento/project-community-edition:2.4.1-p1",php:7.4,composer:1,mysql:"mysql:8.0.20",elasticsearch:"elasticsearch:7.7.1",rabbitmq:"rabbitmq:3.8",redis:"redis:5.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.2":{magento:"magento/project-community-edition:2.4.2",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.9.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.2-p1":{magento:"magento/project-community-edition:2.4.2-p1",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.9.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.2-p2":{magento:"magento/project-community-edition:2.4.2-p2",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.9.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.3":{magento:"magento/project-community-edition:2.4.3",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.3-p1":{magento:"magento/project-community-edition:2.4.3-p1",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.3-p2":{magento:"magento/project-community-edition:2.4.3-p2",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.3-p3":{magento:"magento/project-community-edition:2.4.3-p3",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.4":{magento:"magento/project-community-edition:2.4.4",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.4-p1":{magento:"magento/project-community-edition:2.4.4-p1",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.4-p2":{magento:"magento/project-community-edition:2.4.4-p2",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.5":{magento:"magento/project-community-edition:2.4.5",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.17.5",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.5-p1":{magento:"magento/project-community-edition:2.4.5-p1",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.17.5",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"}};var It={...me,...kt},V=e=>e.reduce((t,r)=>{if(It[r]===void 0)throw new Error("Unknown version while computing matrix");return{magento:[...t.magento,r],include:[...t.include,It[r]]}},{magento:[],include:[]});var Bt=["magento/project-community-edition"];var $t=["magento/project-community-edition:>=2.3 <2.4","magento/project-community-edition:>=2.4.0 <2.4.1","magento/project-community-edition:>=2.4.1 <2.4.2","magento/project-community-edition:>=2.4.2 <2.4.3","magento/project-community-edition:>=2.4.3 <2.4.4","magento/project-community-edition:>=2.4.4 <2.4.5","magento/project-community-edition:>=2.4.5 <2.4.6","magento/project-community-edition"];var Lt=["magento/project-community-edition:next"];var he="magento/project-community-edition:next",Ri=(e,t)=>{switch(e){case"https://upstream-mirror.mage-os.org":return"@alpha";default:return""}},Pi=(e,t)=>e.replace(/(?!:)next$/,t),Vt=(e,t,r)=>Pi(e,Ri(t,r)),Ft=(e,t="https://upstream-mirror.mage-os.org",r=new Date)=>(e.magento=e.magento.map(n=>n===he?Vt(he,t,r):n),e.include=e.include.map(n=>n.magento===he?{...n,magento:Vt(he,t,r)}:n),e);var Gt=(e=new Date)=>{let t=new Date(e);return t.setDate(t.getDate()-1),t};var Jt=(e,t="")=>{switch(e){case"latest":return V(Bt);case"currently-supported":return V($t);case"nightly":return Ft(V(Lt),"https://upstream-mirror.mage-os.org",Gt());case"all":return V(Object.keys(me));case"custom":return V(t.split(","));default:throw new Error(`Unreachable kind: ${e} discovered, please report to the maintainers.`)}};async function Kt(){try{let e=D.getInput("kind");Ct(e);let t=D.getInput("custom_versions");D.setOutput("matrix",Jt(e,t))}catch(e){D.setFailed(e.message)}}Kt();0&&(module.exports={run}); +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}d.getBooleanInput=ii;function oi(e,t){if(process.env.GITHUB_OUTPUT||"")return U.issueFileCommand("OUTPUT",U.prepareKeyValueMessage(e,t));process.stdout.write(Tt.EOL),x.issueCommand("set-output",{name:e},L.toCommandValue(t))}d.setOutput=oi;function si(e){x.issue("echo",e?"on":"off")}d.setCommandEcho=si;function ai(e){process.exitCode=Mt.Failure,jt(e)}d.setFailed=ai;function ui(){return process.env.RUNNER_DEBUG==="1"}d.isDebug=ui;function ci(e){x.issueCommand("debug",{},e)}d.debug=ci;function jt(e,t={}){x.issueCommand("error",L.toCommandProperties(t),e instanceof Error?e.toString():e)}d.error=jt;function li(e,t={}){x.issueCommand("warning",L.toCommandProperties(t),e instanceof Error?e.toString():e)}d.warning=li;function di(e,t={}){x.issueCommand("notice",L.toCommandProperties(t),e instanceof Error?e.toString():e)}d.notice=di;function fi(e){process.stdout.write(e+Tt.EOL)}d.info=fi;function Ut(e){x.issue("group",e)}d.startGroup=Ut;function Dt(){x.issue("endgroup")}d.endGroup=Dt;function mi(e,t){return At(this,void 0,void 0,function*(){Ut(e);let r;try{r=yield t()}finally{Dt()}return r})}d.group=mi;function hi(e,t){if(process.env.GITHUB_STATE||"")return U.issueFileCommand("STATE",U.prepareKeyValueMessage(e,t));x.issueCommand("save-state",{name:e},L.toCommandValue(t))}d.saveState=hi;function pi(e){return process.env[`STATE_${e}`]||""}d.getState=pi;function gi(e){return At(this,void 0,void 0,function*(){return yield Zn.OidcClient.getIDToken(e)})}d.getIDToken=gi;var vi=Ce();Object.defineProperty(d,"summary",{enumerable:!0,get:function(){return vi.summary}});var yi=Ce();Object.defineProperty(d,"markdownSummary",{enumerable:!0,get:function(){return yi.markdownSummary}});var Ie=Et();Object.defineProperty(d,"toPosixPath",{enumerable:!0,get:function(){return Ie.toPosixPath}});Object.defineProperty(d,"toWin32Path",{enumerable:!0,get:function(){return Ie.toWin32Path}});Object.defineProperty(d,"toPlatformPath",{enumerable:!0,get:function(){return Ie.toPlatformPath}})});var Ei={};Xt(Ei,{run:()=>Kt});module.exports=er(Ei);var D=Zt(je());var Nt={"currently-supported":!0,latest:!0,custom:!0,nightly:!0,all:!0},_i=e=>e in Nt,Ct=e=>{if(_i(e))return!0;throw new Error(`Invalid kind provided, supported kinds are: ${Object.keys(Nt).join(", ")}`)};var kt={"magento/project-community-edition:>=2.3 <2.4":{magento:"magento/project-community-edition:>=2.3 <2.4",php:7.4,composer:1,mysql:"mysql:5.7.30",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-18.04"},"magento/project-community-edition:>=2.4.0 <2.4.1":{magento:"magento/project-community-edition:>=2.4.0 <2.4.1",php:7.4,composer:1,mysql:"mysql:5.7.30",elasticsearch:"elasticsearch:7.6.2",rabbitmq:"rabbitmq:3.8",redis:"redis:5.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:>=2.4.1 <2.4.2":{magento:"magento/project-community-edition:>=2.4.1 <2.4.2",php:7.4,composer:1,mysql:"mysql:8.0.20",elasticsearch:"elasticsearch:7.7.1",rabbitmq:"rabbitmq:3.8",redis:"redis:5.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:>=2.4.2 <2.4.3":{magento:"magento/project-community-edition:>=2.4.2 <2.4.3",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.9.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:>=2.4.3 <2.4.4":{magento:"magento/project-community-edition:>=2.4.3 <2.4.4",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:>=2.4.4 <2.4.5":{magento:"magento/project-community-edition:>=2.4.4 <2.4.5",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:>=2.4.5 <2.4.6":{magento:"magento/project-community-edition:>=2.4.5 <2.4.6",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.17.5",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition":{magento:"magento/project-community-edition",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.17.5",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:next":{magento:"magento/project-community-edition:next",php:8.1,composer:2.2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.17.5",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"}};var me={"magento/project-community-edition:2.3.7-p3":{magento:"magento/project-community-edition:2.3.7-p3",php:7.4,composer:1,mysql:"mysql:5.7.30",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-18.04"},"magento/project-community-edition:2.3.7-p4":{magento:"magento/project-community-edition:2.3.7-p4",php:7.4,composer:1,mysql:"mysql:5.7.30",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-18.04"},"magento/project-community-edition:2.4.0":{magento:"magento/project-community-edition:2.4.0",php:7.4,composer:1,mysql:"mysql:5.7.30",elasticsearch:"elasticsearch:7.6.2",rabbitmq:"rabbitmq:3.8",redis:"redis:5.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:2.4.0-p1":{magento:"magento/project-community-edition:2.4.0-p1",php:7.4,composer:1,mysql:"mysql:5.7.30",elasticsearch:"elasticsearch:7.6.2",rabbitmq:"rabbitmq:3.8",redis:"redis:5.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:2.4.1":{magento:"magento/project-community-edition:2.4.1",php:7.4,composer:1,mysql:"mysql:8.0.20",elasticsearch:"elasticsearch:7.7.1",rabbitmq:"rabbitmq:3.8",redis:"redis:5.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:2.4.1-p1":{magento:"magento/project-community-edition:2.4.1-p1",php:7.4,composer:1,mysql:"mysql:8.0.20",elasticsearch:"elasticsearch:7.7.1",rabbitmq:"rabbitmq:3.8",redis:"redis:5.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:2.4.2":{magento:"magento/project-community-edition:2.4.2",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.9.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:2.4.2-p1":{magento:"magento/project-community-edition:2.4.2-p1",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.9.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:2.4.2-p2":{magento:"magento/project-community-edition:2.4.2-p2",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.9.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:2.4.3":{magento:"magento/project-community-edition:2.4.3",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:2.4.3-p1":{magento:"magento/project-community-edition:2.4.3-p1",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:2.4.3-p2":{magento:"magento/project-community-edition:2.4.3-p2",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:2.4.3-p3":{magento:"magento/project-community-edition:2.4.3-p3",php:7.4,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.8",redis:"redis:6.0",varnish:"varnish:6.0",nginx:"nginx:1.18",os:"ubuntu-20.04"},"magento/project-community-edition:2.4.4":{magento:"magento/project-community-edition:2.4.4",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.4-p1":{magento:"magento/project-community-edition:2.4.4-p1",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.4-p2":{magento:"magento/project-community-edition:2.4.4-p2",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.16.3",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.5":{magento:"magento/project-community-edition:2.4.5",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.17.5",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"},"magento/project-community-edition:2.4.5-p1":{magento:"magento/project-community-edition:2.4.5-p1",php:8.1,composer:2,mysql:"mysql:8.0",elasticsearch:"elasticsearch:7.17.5",rabbitmq:"rabbitmq:3.9",redis:"redis:6.2",varnish:"varnish:7.0",nginx:"nginx:1.18",os:"ubuntu-latest"}};var It={...me,...kt},V=e=>e.reduce((t,r)=>{if(It[r]===void 0)throw new Error("Unknown version while computing matrix");return{magento:[...t.magento,r],include:[...t.include,It[r]]}},{magento:[],include:[]});var Bt=["magento/project-community-edition"];var $t=["magento/project-community-edition:>=2.3 <2.4","magento/project-community-edition:>=2.4.0 <2.4.1","magento/project-community-edition:>=2.4.1 <2.4.2","magento/project-community-edition:>=2.4.2 <2.4.3","magento/project-community-edition:>=2.4.3 <2.4.4","magento/project-community-edition:>=2.4.4 <2.4.5","magento/project-community-edition:>=2.4.5 <2.4.6","magento/project-community-edition"];var Lt=["magento/project-community-edition:next"];var he="magento/project-community-edition:next",Ri=(e,t)=>{switch(e){case"https://upstream-mirror.mage-os.org":return"@alpha";default:return""}},Pi=(e,t)=>e.replace(/(?!:)next$/,t),Vt=(e,t,r)=>Pi(e,Ri(t,r)),Ft=(e,t="https://upstream-mirror.mage-os.org",r=new Date)=>(e.magento=e.magento.map(n=>n===he?Vt(he,t,r):n),e.include=e.include.map(n=>n.magento===he?{...n,magento:Vt(he,t,r)}:n),e);var Gt=(e=new Date)=>{let t=new Date(e);return t.setDate(t.getDate()-1),t};var Jt=(e,t="")=>{switch(e){case"latest":return V(Bt);case"currently-supported":return V($t);case"nightly":return Ft(V(Lt),"https://upstream-mirror.mage-os.org",Gt());case"all":return V(Object.keys(me));case"custom":return V(t.split(","));default:throw new Error(`Unreachable kind: ${e} discovered, please report to the maintainers.`)}};async function Kt(){try{let e=D.getInput("kind");Ct(e);let t=D.getInput("custom_versions");D.setOutput("matrix",Jt(e,t))}catch(e){D.setFailed(e.message)}}Kt();0&&(module.exports={run}); diff --git a/supported-version/src/versions/composite.json b/supported-version/src/versions/composite.json index 09f39a9c..38b96211 100644 --- a/supported-version/src/versions/composite.json +++ b/supported-version/src/versions/composite.json @@ -21,7 +21,7 @@ "redis": "redis:5.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:>=2.4.1 <2.4.2": { "magento": "magento/project-community-edition:>=2.4.1 <2.4.2", @@ -33,7 +33,7 @@ "redis": "redis:5.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:>=2.4.2 <2.4.3": { "magento": "magento/project-community-edition:>=2.4.2 <2.4.3", @@ -45,7 +45,7 @@ "redis": "redis:6.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:>=2.4.3 <2.4.4": { "magento": "magento/project-community-edition:>=2.4.3 <2.4.4", @@ -57,7 +57,7 @@ "redis": "redis:6.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:>=2.4.4 <2.4.5": { "magento": "magento/project-community-edition:>=2.4.4 <2.4.5", diff --git a/supported-version/src/versions/individual.json b/supported-version/src/versions/individual.json index 7d075643..aaf7e99c 100644 --- a/supported-version/src/versions/individual.json +++ b/supported-version/src/versions/individual.json @@ -33,7 +33,7 @@ "redis": "redis:5.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:2.4.0-p1": { "magento": "magento/project-community-edition:2.4.0-p1", @@ -45,7 +45,7 @@ "redis": "redis:5.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:2.4.1": { "magento": "magento/project-community-edition:2.4.1", @@ -57,7 +57,7 @@ "redis": "redis:5.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:2.4.1-p1": { "magento": "magento/project-community-edition:2.4.1-p1", @@ -69,7 +69,7 @@ "redis": "redis:5.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:2.4.2": { "magento": "magento/project-community-edition:2.4.2", @@ -81,7 +81,7 @@ "redis": "redis:6.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:2.4.2-p1": { "magento": "magento/project-community-edition:2.4.2-p1", @@ -93,7 +93,7 @@ "redis": "redis:6.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:2.4.2-p2": { "magento": "magento/project-community-edition:2.4.2-p2", @@ -105,7 +105,7 @@ "redis": "redis:6.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:2.4.3": { "magento": "magento/project-community-edition:2.4.3", @@ -117,7 +117,7 @@ "redis": "redis:6.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:2.4.3-p1": { "magento": "magento/project-community-edition:2.4.3-p1", @@ -129,7 +129,7 @@ "redis": "redis:6.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:2.4.3-p2": { "magento": "magento/project-community-edition:2.4.3-p2", @@ -141,7 +141,7 @@ "redis": "redis:6.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:2.4.3-p3": { "magento": "magento/project-community-edition:2.4.3-p3", @@ -153,7 +153,7 @@ "redis": "redis:6.0", "varnish": "varnish:6.0", "nginx": "nginx:1.18", - "os": "ubuntu-latest" + "os": "ubuntu-20.04" }, "magento/project-community-edition:2.4.4": { "magento": "magento/project-community-edition:2.4.4",