🎥 Make videos programmatically with React
Internal: Include build tasks in affected CI (#10216)
Igor Samokhovetseeea2b57e7f5
diff --git a/.github/scripts/ci.test.ts b/.github/scripts/ci.test.tsindex 38d96d0b74..1416ced181 100644--- a/.github/scripts/ci.test.ts+++ b/.github/scripts/ci.test.ts@@ -76,11 +76,16 @@ describe('CI plan generation', () => {expect(plan.build_matrix).toEqual(MINIMAL_BUILD_MATRIX);});- test('uses the full build matrix for a package source change', () => {- const plan = planFor({tasks: [{name: 'make'}, {name: 'test'}]});- expect(plan.build).toBe(true);- expect(plan.build_matrix).toEqual(FULL_BUILD_MATRIX);- });+ test.each(['build', 'make', 'test'])(+ 'uses the full build matrix when a non-docs %s task is affected',+ (task) => {+ const plan = planFor({+ tasks: [{name: task, packageName: 'template-electron'}],+ });+ expect(plan.build).toBe(true);+ expect(plan.build_matrix).toEqual(FULL_BUILD_MATRIX);+ },+ );test.each([['lambda', 'testlambda'],diff --git a/.github/scripts/ci.ts b/.github/scripts/ci.tsindex 0a32f980db..b306c80bf6 100644--- a/.github/scripts/ci.ts+++ b/.github/scripts/ci.ts@@ -29,7 +29,7 @@ const TASKS_BY_SUITE = {webrenderer: ['testwebrenderer', 'testbrowserstudio'],ssr: ['testssr'],templates: ['testtemplates'],- build: ['make', 'test'],+ build: ['build', 'make', 'test'],bundle_example: ['bundle-testbed'],} as const;@@ -211,7 +211,9 @@ export const createCiPlan = (input: PlannerInput): CiPlan => {const bundleExample = selected('bundle_example');const hasNonDocsBuild = tasks.some((task) =>- (task.name === 'make' || task.name === 'test') &&+ (task.name === 'build' ||+ task.name === 'make' ||+ task.name === 'test') &&task.package.name !== 'docs',);