fix(supported-versions): nightly build matrix tag (#152)

This commit is contained in:
Damien Retzinger
2023-09-24 16:07:37 -04:00
committed by GitHub
parent 88901eacf7
commit 7f1821f6ac
10 changed files with 326 additions and 48 deletions
@@ -32,6 +32,12 @@ describe('getMatrixForKind for mage-os', () => {
expect(result.include).toBeDefined();
});
it('returns a matrix nightly`', () => {
const result = getMatrixForKind("nightly", project);
expect(result.magento).toBeDefined();
expect(result.include).toBeDefined();
});
it('returns a matrix for the next release when using `nightly`', () => {
const result = getMatrixForKind("nightly", project, "mage-os/project-community-edition:next");
@@ -48,6 +54,12 @@ describe('getMatrixForKind for mage-os', () => {
describe('getMatrixForKind for magento-open-source', () => {
const project = "magento-open-source";
it('returns a matrix nightly`', () => {
const result = getMatrixForKind("nightly", project);
expect(result.magento).toBeDefined();
expect(result.include).toBeDefined();
});
it('returns a matrix for `latest`', () => {
const result = getMatrixForKind("latest", project);
@@ -2,9 +2,9 @@ import { getMatrixForVersions } from "./get-matrix-for-versions";
import { getIndividualVersionsForProject } from "../versions/get-versions-for-project";
import latestJson from '../kind/special-versions/latest.json';
import nightlyJson from '../kind/special-versions/nightly.json';
import { amendMatrixForNext } from "../nightly/get-next-version";
import { getDayBefore } from '../nightly/get-day-before';
import { getCurrentlySupportedVersions } from "../kind/get-currently-supported";
import { amendMatrixForNext } from "../nightly/amend-matrix-for-next";
export const getMatrixForKind = (kind: string, project: string, versions = "") => {