mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
fix: using latest accidentally output two versions for Magento Open Source
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -11,6 +11,13 @@ describe('getMatrixForKind for mage-os', () => {
|
||||
expect(result.include).toBeDefined();
|
||||
});
|
||||
|
||||
it('returns a single-element matrix for with a matrix "magento" for `latest`', () => {
|
||||
const result = getMatrixForKind("latest", project);
|
||||
expect(result.magento.length).toEqual(1);
|
||||
expect(result.include.length).toEqual(1);
|
||||
expect(result.magento[0]).toEqual(result.include[0].magento);
|
||||
});
|
||||
|
||||
it('returns a matrix for `currently-supported`', () => {
|
||||
const result = getMatrixForKind("currently-supported", project);
|
||||
|
||||
@@ -47,6 +54,13 @@ describe('getMatrixForKind for mage-os', () => {
|
||||
expect(result.include).toBeDefined();
|
||||
});
|
||||
|
||||
it('returns a single-element matrix for with a matrix "magento" for `nightly`', () => {
|
||||
const result = getMatrixForKind("nightly", project);
|
||||
expect(result.magento.length).toEqual(1);
|
||||
expect(result.include.length).toEqual(1);
|
||||
expect(result.magento[0]).toEqual(result.include[0].magento);
|
||||
});
|
||||
|
||||
it('errors for invalid `custom``', () => {
|
||||
expect(() => getMatrixForKind("custom", project)).toThrowError();
|
||||
});
|
||||
@@ -64,11 +78,18 @@ describe('getMatrixForKind for magento-open-source', () => {
|
||||
|
||||
it('returns a matrix for `latest`', () => {
|
||||
const result = getMatrixForKind("latest", project);
|
||||
|
||||
console.log(result);
|
||||
expect(result.magento).toBeDefined();
|
||||
expect(result.include).toBeDefined();
|
||||
});
|
||||
|
||||
it('returns a single-element matrix for with a matrix "magento" for `latest`', () => {
|
||||
const result = getMatrixForKind("latest", project);
|
||||
expect(result.magento.length).toEqual(1);
|
||||
expect(result.include.length).toEqual(1);
|
||||
expect(result.magento[0]).toEqual(result.include[0].magento);
|
||||
});
|
||||
|
||||
it('returns a matrix for `currently-supported`', () => {
|
||||
const result = getMatrixForKind("currently-supported", project);
|
||||
|
||||
@@ -97,6 +118,13 @@ describe('getMatrixForKind for magento-open-source', () => {
|
||||
expect(result.include).toBeDefined();
|
||||
});
|
||||
|
||||
it('returns a single-element matrix for with a matrix "magento" for `nightly`', () => {
|
||||
const result = getMatrixForKind("nightly", project);
|
||||
expect(result.magento.length).toEqual(1);
|
||||
expect(result.include.length).toEqual(1);
|
||||
expect(result.magento[0]).toEqual(result.include[0].magento);
|
||||
});
|
||||
|
||||
it('returns a matrix for valid multiple `custom`', () => {
|
||||
const result = getMatrixForKind("custom", project, "magento/project-community-edition:2.4.2,magento/project-community-edition:2.4.3");
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
"eol": "2028-04-09T00:00:00+0000"
|
||||
},
|
||||
"magento/project-community-edition": {
|
||||
"magento": "magento/project-community-edition:>=2.4.8 <2.4.9",
|
||||
"magento": "magento/project-community-edition",
|
||||
"php": 8.4,
|
||||
"composer": "2.8.8",
|
||||
"mysql": "mysql:8.4",
|
||||
@@ -158,7 +158,7 @@
|
||||
"eol": "2028-04-09T00:00:00+0000"
|
||||
},
|
||||
"magento/project-community-edition:next": {
|
||||
"magento": "magento/project-community-edition:>=2.4.8 <2.4.9",
|
||||
"magento": "magento/project-community-edition:@alpha",
|
||||
"php": 8.4,
|
||||
"composer": "2.8.8",
|
||||
"mysql": "mysql:8.4",
|
||||
|
||||
Reference in New Issue
Block a user