mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-13 13:14:53 +00:00
fix: using latest accidentally output two versions for Magento Open Source
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -46,6 +53,13 @@ describe('getMatrixForKind for mage-os', () => {
|
||||
expect(result.magento).toBeDefined();
|
||||
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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user